diff --git a/wp-includes/plugin.php b/wp-includes/plugin.php index e02139d1c1..d616a2a960 100644 --- a/wp-includes/plugin.php +++ b/wp-includes/plugin.php @@ -105,6 +105,7 @@ function add_filter( $tag, $function_to_add, $priority = 10, $accepted_args = 1 * return value. */ function has_filter($tag, $function_to_check = false) { + // Don't reset the internal array pointer $wp_filter = $GLOBALS['wp_filter']; $has = ! empty( $wp_filter[ $tag ] );