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:
parent
f15c863ba1
commit
a8d7ff1742
|
@ -658,7 +658,7 @@ function _wp_filter_build_unique_id($tag, $function, $priority) {
|
||||||
if ( !isset($function[0]->wp_filter_id) ) {
|
if ( !isset($function[0]->wp_filter_id) ) {
|
||||||
if ( false === $priority )
|
if ( false === $priority )
|
||||||
return false;
|
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;
|
$function[0]->wp_filter_id = $count;
|
||||||
$obj_idx .= $count;
|
$obj_idx .= $count;
|
||||||
unset($count);
|
unset($count);
|
||||||
|
|
Loading…
Reference in New Issue