[wp-trac] Re: [WordPress Trac] #3884: the_content_rss() is used
incorrectly in wp-rdf.php, wp-rss2.php and wp-atom.php
WordPress Trac
wp-trac at lists.automattic.com
Fri Mar 2 03:26:04 GMT 2007
#3884: the_content_rss() is used incorrectly in wp-rdf.php, wp-rss2.php and wp-
atom.php
----------------------+-----------------------------------------------------
Reporter: jeroyang | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.2
Component: General | Version: 2.1.1
Severity: normal | Resolution:
Keywords: |
----------------------+-----------------------------------------------------
Comment (by jeroyang):
> Line 45 in wp-rss2.php should be:
{{{
<content:encoded>
<![CDATA[<?php the_content_rss('', 0, '',0 , 3) ?>]]>
</content:encoded>
}}}
> Line 39 in wp-atom.php should be:
{{{
<content type="<?php bloginfo('html_type'); ?>" mode="escaped"
xml:base="<?php permalink_single_rss() ?>">
<![CDATA[<?php the_content_rss('', 0, '',0 , 3) ?>]]>
</content>
}}}
> Line 52 in wp-rdf.php should be:
{{{
<content:encoded>
<![CDATA[<?php the_content_rss('', 0, '',0 , 3) ?>]]>
</content:encoded>
}}}
by the way, the_content_rss() should always apply "the_content" filter
first and then "the_content_rss" filter to keep almost all plugins
involving content filter works on feeds.
On the other hand, to apply "the_content_rss" filter only in
the_content_rss() is logically correct but we have to fix hundred of
plugins to make wanted output.
--
Ticket URL: <http://trac.wordpress.org/ticket/3884#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list