mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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 ] );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user