Fix remaining notice when using closures. Fixes #10493 props scribu.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
86cb0aa6b9
commit
3a3cce834a
|
@ -737,9 +737,9 @@ function _wp_filter_build_unique_id($tag, $function, $priority) {
|
|||
if ( is_string($function) )
|
||||
return $function;
|
||||
|
||||
// Closures are currently implemented as objects
|
||||
if ( is_object($function) ) {
|
||||
$function = array( $function );
|
||||
// Closures are currently implemented as objects
|
||||
$function = array( $function, '' );
|
||||
} else {
|
||||
$function = (array) $function;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue