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:
parent
a2df97240f
commit
0161953100
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue