Add null check to $functions in apply_filters(). http://www.kackreiz.net/wordpress.php

git-svn-id: http://svn.automattic.com/wordpress/trunk@1394 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2004-06-08 09:34:01 +00:00
parent 282123d62f
commit 5d4fca3088

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;