Make WordPress Core

Opened 22 years ago

Closed 22 years ago

#219 closed defect (bug) (wontfix)

RSS Summary strips links from description.

Reported by: tor Owned by: matt
Priority: normal Milestone:
Component: General Version: 1.2
Severity: major Keywords:
Cc: Focuses:

Description

Links aren't showing up at all in the rss feed at feed/rss2/

The text between the a tags are there, but not the actual <a> tags.

Attachments (1)

0000219-wp-rss-trunc.diff​ (3.7 KB ) - added by tor 22 years ago.

Download all attachments as: .zip

Change History (9)

#2 @tor
22 years ago

oops forgot to link to the culprit page.
​http://brainscat.com/feed/rss2/

edited on: 08-11-04 15:17

#3 @matt
22 years ago

This is correct behaviour if you have RSS set to show excerpts on your Options > Reading page.

#4 @matt
22 years ago

  • Status new → assigned

#5 @anonymousbugger
22 years ago

Perhaps this should be changed, as it doesn't seem intuitive?

The behavior I expected was shortening of the description, and any links started within that block, would be closed at their normal space, or at the end, if the link keywords extend beyond the max summary size.

I would be more than willing to whip up a patch for this if you'd like this changed in the core.

Expected behavior of the patch where summary size is limited to 30 chars

Case 1. Links are in body, and don't need to be cut. Link markup isn't treated against character limit for summary.

Desc:
The lazy [a href="​http://wordpress.org"]brown foxa jumped over the dog.
Summary:
The lazy [a href="​http://wordpress.org"]brown foxa jumped over...

Case 2. Links are in body, and end link DOES need to be cut. Link markup isn't treated against character limit for summary.

Desc:
The really lazy brown fox [a href="​http://brainscat.com"]jumped[/a] over nothing.
Summary:
The really lazy brown fox [a href="​http://brainscat.com"]jump[/a]...

~Tor (forgot to login)
edited: 'cause mosquito doesn't like links

edited on: 08-30-04 15:11

#6 @tor
22 years ago

I added a patch that implements this against the newest CVS. RSS 0.92 didn't seem to like a rich xhtml block (wrapped in CDATA) in the description from the docs I read, nor did atom. I'm no expert on this though, so I figured leaving them alone was best policy.

A simple call to the function get_content_truncated should do the trick though, if
it's determined something like this is kosher.

#7 @tor
22 years ago

  • Patch → Yes

#8 @matt
22 years ago

  • Owner changed from anonymous to matt
  • Resolution 10 → 90
  • Status assigned → closed

Intended behaviour

Note: See TracTickets for help on using tickets.