From 01619531006cde1a91996d1c3736935957bcf405 Mon Sep 17 00:00:00 2001 From: westi Date: Sat, 27 Sep 2008 09:53:43 +0000 Subject: [PATCH] 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 --- 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 0522d5433..dc7dfe681 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);