[wp-trac] [WordPress Trac] #8454: Comments-RSS uses html-entities in
translated text
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 2 08:26:03 GMT 2008
#8454: Comments-RSS uses html-entities in translated text
------------------------+---------------------------------------------------
Reporter: schlafbaum | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.8
Component: General | Version:
Severity: normal | Keywords:
------------------------+---------------------------------------------------
If the translation of eg. "Comments on: %s", used in feed-rss2-coments.php
and feed-atom-comments.php, uses special chars like ü for ü, the
comments feed will not alidate because of "Undefined named entity".
Solution: wrapping translation in html_entity_decode like:
feed-rss2-comments.php, line 21:
instead of:
{{{printf(__('Comments on: %s', ENT_QUOTES,
get_option('blog_charset')));}}}
do:
{{{printf(html_entity_decode(__('Comments on: %s', ENT_QUOTES,
get_option('blog_charset')), get_the_title_rss());}}}
Translated text is used in 5 lines in both mentioned files.
--
Ticket URL: <http://trac.wordpress.org/ticket/8454>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list