[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
Tue Feb 27 17:40:15 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:            |  
----------------------+-----------------------------------------------------
Changes (by westi):

  * summary:  the_content_rss() is used correctly in wp-rdf.php, wp-
              rss2.php and wp-atom.php => the_content_rss()
              is used incorrectly in wp-rdf.php, wp-rss2.php
              and wp-atom.php
  * milestone:  => 2.2

Old description:

> Plugins using the filter "the_content_rss" are never applied in the RSS2
> and Atom feeds, and still not working in the <content:encoded> tag of the
> RDF feed.
>
> Line 45 in wp-rss2.php should be:
>
> {{{
> <content:encoded><![CDATA[<?php the_content_rss('', 0, '',, 2)
> ?>]]></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, '',, 2) ?>]]></content>
> }}}
>
> Line 52 in wp-rdf.php should be:
> {{{
> <content:encoded><![CDATA[<?php the_content_rss('', 0, '',, 2)
> ?>]]></content:encoded>
> }}}
>
> or something like that...

New description:

 Plugins using the filter "the_content_rss" are never applied in the RSS2
 and Atom feeds, and still not working in the <content:encoded> tag of the
 RDF feed.

 Line 45 in wp-rss2.php should be:

 {{{
 <content:encoded>
 <![CDATA[<?php the_content_rss('', 0, '',, 2) ?>]]>
 </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, '',, 2) ?>]]>
 </content>
 }}}

 Line 52 in wp-rdf.php should be:
 {{{
 <content:encoded>
 <![CDATA[<?php the_content_rss('', 0, '',, 2) ?>]]>
 </content:encoded>
 }}}

 or something like that...

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3884#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list