minor change to apply_filters (spotted by Robert Morrison)
git-svn-id: http://svn.automattic.com/wordpress/trunk@249 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
68ab72e70d
commit
2031c68eb8
|
@ -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