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:
parent
282123d62f
commit
5d4fca3088
|
@ -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