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:
Scott Taylor 2014-08-12 14:46:45 +00:00
parent 169a5ae561
commit 72ca5be593
1 changed files with 1 additions and 1 deletions

View File

@ -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 ] );