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

git-svn-id: https://develop.svn.wordpress.org/trunk@9000 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2008-09-27 09:53:43 +00:00
parent f15c863ba1
commit a8d7ff1742
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);