Fix remaining notice when using closures. Fixes #10493 props scribu.

git-svn-id: https://develop.svn.wordpress.org/trunk@14691 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-05-16 13:41:02 +00:00
parent bfb56d204b
commit 2702a216c4
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}