From a8d7ff1742e0674ce5ecdf4ccbba3ec65c535ff2 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sat, 27 Sep 2008 09:53:43 +0000 Subject: [PATCH] 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 --- wp-includes/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/plugin.php b/wp-includes/plugin.php index 0522d5433e..dc7dfe6812 100644 --- a/wp-includes/plugin.php +++ b/wp-includes/plugin.php @@ -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);