From 041328b241f305e51241e51a298383a44ee14432 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 23 Mar 2022 14:48:28 +0000 Subject: [PATCH] Tests: Remove some unused variables in `phpunit/tests/filters.php`. Follow-up to [29422], [31014]. Props azouamauriac. See #54725. git-svn-id: https://develop.svn.wordpress.org/trunk@52983 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/filters.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/phpunit/tests/filters.php b/tests/phpunit/tests/filters.php index 51ada1f981..1f5bc8342d 100644 --- a/tests/phpunit/tests/filters.php +++ b/tests/phpunit/tests/filters.php @@ -202,7 +202,6 @@ class Tests_Filters extends WP_UnitTestCase { public function test_remove_all_filters_should_respect_the_priority_argument() { $a = new MockAction(); $tag = __FUNCTION__; - $val = __FUNCTION__ . '_val'; add_filter( $tag, array( $a, 'filter' ), 12 ); $this->assertTrue( has_filter( $tag ) ); @@ -313,7 +312,6 @@ class Tests_Filters extends WP_UnitTestCase { public function test_has_filter_after_remove_all_filters() { $a = new MockAction(); $tag = __FUNCTION__; - $val = __FUNCTION__ . '_val'; // No priority. add_filter( $tag, array( $a, 'filter' ), 11 );