mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-02 05:31:25 +01:00
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 ( !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
Block a user