From 72ca5be5933eb85e66c50789490c12a56f227242 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 12 Aug 2014 14:46:45 +0000 Subject: [PATCH] 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 --- src/wp-includes/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/plugin.php b/src/wp-includes/plugin.php index bfa5f9d1bb..e02139d1c1 100644 --- a/src/wp-includes/plugin.php +++ b/src/wp-includes/plugin.php @@ -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 ] );