From 25b507c295b027e0ad577204e81e6a5bad632f30 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 8 Jun 2004 09:34:01 +0000 Subject: [PATCH] Add null check to $functions in apply_filters(). http://www.kackreiz.net/wordpress.php git-svn-id: https://develop.svn.wordpress.org/trunk@1394 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index f40e0723d0..3af727e25a 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -1117,9 +1117,11 @@ function apply_filters($tag, $string) { if (isset($wp_filter[$tag])) { ksort($wp_filter[$tag]); foreach ($wp_filter[$tag] as $priority => $functions) { - foreach($functions as $function) { + if (!is_null($functions)) { + foreach($functions as $function) { $string = $function($string); - } + } + } } } return $string;