WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#8454 closed defect (bug) (duplicate)

Comments-RSS uses html-entities in translated text

Reported by: schlafbaum Owned by: anonymous
Priority: normal Milestone:
Component: General Version:
Severity: normal Keywords:
Cc:

Description

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.

Attachments (2)

feed-atom-comments.php (4.4 KB) - added by schlafbaum 5 years ago.
feed-rss2-comments.php (2.9 KB) - added by schlafbaum 5 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 schlafbaum5 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

sorry, already in 8405

comment:2 jacobsantos5 years ago

  • Milestone 2.8 deleted
Note: See TracTickets for help on using tickets.