From 3a3cce834a1ee5561ee4eb5c28afbb1fa4699919 Mon Sep 17 00:00:00 2001 From: westi Date: Sun, 16 May 2010 13:41:02 +0000 Subject: [PATCH] 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 --- wp-includes/plugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/plugin.php b/wp-includes/plugin.php index b8148c5185..c910c851e8 100644 --- a/wp-includes/plugin.php +++ b/wp-includes/plugin.php @@ -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; }