Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#6783 closed defect (bug) (invalid)

pass filtered content when generating rss2 feed

Reported by: hailin Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.5
Component: General Keywords:
Focuses: Cc:


when we generate rss2 feed, we pass in raw post->content. We should filter the content first in order to parse the shortcodes, if there are any, then call do_action('rss2_item').

also aligned the formatting a little bit.

Attachments (1)

6783_feed_rss2.diff (2.2 KB) - added by hailin 13 years ago.

Download all attachments as: .zip

Change History (5)

13 years ago


#1 @Viper007Bond
13 years ago

  • Milestone 2.7 deleted
  • Resolution set to wontfix
  • Status changed from new to closed
  • Version set to 2.5

There is no need to pass the content to the rss2_item hook, especially the filtered content. If you need it, just global $post inside your plugin. It's just a normal Loop.

And your formatting just adds tons of unneeded line breaks.

#2 @Viper007Bond
13 years ago

  • Resolution wontfix deleted
  • Status changed from closed to reopened

#3 @Viper007Bond
13 years ago

  • Resolution set to invalid
  • Status changed from reopened to closed

#4 @hailin
13 years ago

sounds reasonable. I guess the styling is more of personal preference.
I like aligning everything logically, while leaving spaces between lines.

Note: See TracTickets for help on using tickets.