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:
parent
78b413030f
commit
25b507c295
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user