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