mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 12:14:25 +00:00
Unit tests for has_filter() not resetting the array pointer.
props pento. fixes #29070. see [29472]. git-svn-id: https://develop.svn.wordpress.org/trunk@29665 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 ] );
|
||||
|
||||
Reference in New Issue
Block a user