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