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
This commit is contained in:
Ryan Boren 2004-06-08 09:34:01 +00:00
parent 78b413030f
commit 25b507c295
1 changed files with 4 additions and 2 deletions

View File

@ -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;