Make WordPress Core

Opened 19 years ago

Closed 18 years ago

Last modified 18 years ago

#6783 closed defect (bug) (invalid)

pass filtered content when generating rss2 feed

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

Description

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 19 years ago.
patch

Download all attachments as: .zip

Change History (5)

@hailin
19 years ago

patch

#1 @Viper007Bond
18 years ago

  • Milestone 2.7
  • Resolution → wontfix
  • Status new → closed
  • Version → 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
18 years ago

  • Resolution wontfix
  • Status closed → reopened

#3 @Viper007Bond
18 years ago

  • Resolution → invalid
  • Status reopened → closed

#4 @hailin
18 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.