minor change to apply_filters (spotted by Robert Morrison)
git-svn-id: https://develop.svn.wordpress.org/trunk@249 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6f9fcd2213
commit
b25f660d2c
@ -1252,7 +1252,7 @@ function apply_filters($tag, $string) {
|
||||
$b2_filter[$tag] = array_unique($b2_filter[$tag]);
|
||||
}
|
||||
if (isset($b2_filter[$tag])) {
|
||||
$b2_filter[$tags] = (is_string($b2_filter[$tag])) ? array($b2_filter[$tag]) : $b2_filter[$tag];
|
||||
$b2_filter[$tag] = (is_string($b2_filter[$tag])) ? array($b2_filter[$tag]) : $b2_filter[$tag];
|
||||
$functions = $b2_filter[$tag];
|
||||
foreach($functions as $function) {
|
||||
$string = $function($string);
|
||||
|
Loading…
Reference in New Issue
Block a user