Bug: filter not applied in get_archives()
-
Using the include Polyglot to get a site multilingual, I noticed that the archive list on the right wasn’t getting translated, but showed the language specifying markup tags (e.g. [lang_en] etc.)
Digging down into the code I found that the archive list was being created by the function get_archives() in the file wp-includestemplate-functions-general.php
It doesn’t apply the function ‘apply_filters’ to the title it displays.To patch this I added this line to the function:
$arc_title = apply_filters('the_title', $arc_title , "", "");Is there a better place to report bugs?
Thanks,
Philbert -
Philbert
I’m afraid you’re at the wrong place bud. You need to be over at http://www.wordpress.org . We have different software here and can’t answer your questions.
Collin
-
– Always read a post labeled “Please read me first before posting” ;)
– Search the forums first for this issue.
– Search the trac as well.
– Submit the bug to trac with as many details as you can get in there. (ie the version of wp that you’re using. Big dependance on that information.)Hope this helps and thanks for reporting the issue.
-drmike
- The topic ‘Bug: filter not applied in get_archives()’ is closed to new replies.