[wp-trac] [WordPress Trac] #10410: Secondary RSS feeds use the wrong function to acquire post titles
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 14 23:00:58 UTC 2009
#10410: Secondary RSS feeds use the wrong function to acquire post titles
--------------------------+-------------------------------------------------
Reporter: kingjeffrey | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone:
Component: Feeds | Version: 2.8.1
Severity: normal | Keywords: RSS HTML
--------------------------+-------------------------------------------------
The bug occurs on line 1499 of wp-includes/general-template.php. It grabs
the post title by calling `esc_html( get_the_title() )`.
The problem occurs when a plugin injects HTML into the title using the
`the_title` hook, secondary feeds may break and will definitely display
incorrectly when selected from the browser's feed icon in the address bar.
Either this function should strip the HTML (not escape it) or call the
`the_title_attribute()` function that returns the title pre filter (this
is probably the wrong solution).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10410>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list