After [29422], make sure the internal array counter is not reset for the `$wp_filter` global.
Props kovshenin. See #29070. Built from https://develop.svn.wordpress.org/trunk@29472 git-svn-id: http://core.svn.wordpress.org/trunk@29250 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2f4bd918b2
commit
d45cde548e
|
@ -105,7 +105,7 @@ function add_filter( $tag, $function_to_add, $priority = 10, $accepted_args = 1
|
|||
* return value.
|
||||
*/
|
||||
function has_filter($tag, $function_to_check = false) {
|
||||
global $wp_filter;
|
||||
$wp_filter = $GLOBALS['wp_filter'];
|
||||
|
||||
$has = ! empty( $wp_filter[ $tag ] );
|
||||
|
||||
|
|
Loading…
Reference in New Issue