WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 3 years ago

#10689 closed enhancement (invalid)

In Firefox, RSS Feeds using Full Text displays as Excerpt

Reported by: r-a-y Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.8.4
Component: Feeds Keywords: rss, excerpt, full text
Focuses: Cc:

Description

Wasn't sure to either file this as a "bug" or an "enhancement", but anyway this "bughancement" was originally pointed out by Rahul:
http://www.devilsworkshop.org/force-firefox-to-display-your-full-feeds-wordpress-hack/

In wp-includes/feed-rss2.php,

<?php if (get_option('rss_use_excerpt')) : ?>
		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>
<?php else : ?>
		<description><![CDATA[<?php the_excerpt_rss() ?>]]></description>

The "else" statement should not be the_excerpt_rss(), it should be the_content_rss().

The same thing would have to be modified for the other feed items.

---

I know <description> should be ideally used as an excerpt, but the main problem is Firefox uses the <description> attribute instead of <content:encoded> to view RSS feeds with Full Text.

Since we already do a check for using rss_use_excerpt(), couldn't we just make the <description> full text anyway?

What do you guys think?

Change History (4)

#1 @r-a-y
9 years ago

The other possibility is removing the <description> element when Full Text feeds are in use.

#2 @ryan
9 years ago

This comes up often and we've always left it as-is since description is properly a synopsis.

#3 @scribu
9 years ago

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

You shouldn't be using Firefox as a feed reader anyway.

#4 @DrewAPicture
3 years ago

  • Milestone 2.8.5 deleted
Note: See TracTickets for help on using tickets.