[wp-trac] [WordPress Trac] #21753: Feed excerpts are missing important filter formatting
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 31 14:20:56 UTC 2012
#21753: Feed excerpts are missing important filter formatting
--------------------------+-----------------------------
Reporter: mdgl | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Feeds | Version: 3.4.1
Severity: normal | Keywords:
--------------------------+-----------------------------
Excerpts included in feeds are missing important formatting because the
relevant filters are not applied (e.g. wpautop).
In file wp-includes/feed.php, function the_excerpt_rss() does not apply
the same filters as the_excerpt() whilst results in lost formatting
instructions. By comparison, function the_content_feed() ensures that the
same filters declared for the_content() are applied.
A suggested patch is attached. Note that for symmetry between
the_excerpt_rss() and the_content_feed() this patch also removes the
(unnecessary?) filter ent2ncr() from the_excerpt_rss() and retains the
(controversial?) escaping for CDATA blocks (see #3670).
A few related issues are worth mentioning. Firstly, shortcodes are still
not applied to excerpts (see #7093). Also, the (obsolete?) RDF feed does
not make use of a CDATA block unlike those for RSS, RSS2 and Atom (see
#20888). Finally, a similar problem occurs with comment text in feeds (see
#16466).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21753>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list