[wp-trac] [WordPress Trac] #3884: Refactor the_content_rss() to the_content_feed()

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 25 17:23:10 UTC 2009


#3884: Refactor the_content_rss() to the_content_feed()
--------------------------+-------------------------------------------------
 Reporter:  jeroyang      |       Owner:  Viper007Bond
     Type:  defect (bug)  |      Status:  assigned    
 Priority:  normal        |   Milestone:  2.9         
Component:  Feeds         |     Version:  2.1.1       
 Severity:  normal        |    Keywords:  has-patch   
--------------------------+-------------------------------------------------

Comment(by ryan):

 Looks like we both worked on the same thing. FWIW, here's my patch.

  * Deprecates the_content_rss()
  * Introduces the_content_feed() and get_the_content_feed() which are just
 wrappers around get_the_content() that call an extra filter
  * Converts places that called the_content_rss() with an excerpt length to
 the_excerpt_rss()
  * Gets rid of the rss_use_excerpt conditional in the RSS feed. Both
 conditions were doing pretty much the same thing except one used CDATA and
 the excerpt lengths were slightly different
  * Removes the rss_excerpt_length option
  * Uses the_content_feed() where the_content() was previously used

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


More information about the wp-trac mailing list