mirror of
git://develop.git.wordpress.org/
synced 2025-02-26 01:22:47 +01:00
After [29422], make sure the internal array counter is not reset for the $wp_filter
global.
Props kovshenin. See #29070. git-svn-id: https://develop.svn.wordpress.org/trunk@29472 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
169a5ae561
commit
72ca5be593
@ -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…
x
Reference in New Issue
Block a user