Fix Notice. When nothing exists for an action or filter.

git-svn-id: http://svn.automattic.com/wordpress/trunk@9000 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2008-09-27 09:53:43 +00:00
parent a2df97240f
commit 0161953100
1 changed files with 1 additions and 1 deletions

View File

@ -658,7 +658,7 @@ function _wp_filter_build_unique_id($tag, $function, $priority) {
if ( !isset($function[0]->wp_filter_id) ) {
if ( false === $priority )
return false;
$count = count((array)$wp_filter[$tag][$priority]);
$count = isset($wp_filter[$tag]) ? count((array)$wp_filter[$tag][$priority]) : 0;
$function[0]->wp_filter_id = $count;
$obj_idx .= $count;
unset($count);