Make WordPress Core

Opened 14 years ago

Closed 13 years ago

#5238 closed defect (bug) (fixed)

Self links in feeds are incorrect for categories

Reported by: westi Owned by: westi
Milestone: 2.5 Priority: high
Severity: normal Version: 2.3
Component: Template Keywords: has-patch
Focuses: Cc:


Raised from #5205

We use bloginfo('atom_url') and bloginfo('rss_url') to build the self links but these return the links to the main atom and rss urls the underlying function called (get_feed_link) needs to be used instead and made category aware.

Attachments (1)

self-link.diff (1.8 KB) - added by andy 13 years ago.

Download all attachments as: .zip

Change History (5)

13 years ago

#1 @andy
13 years ago

  • Keywords has-patch added; needs-patch removed

This is also a problem for query-string feeds. I believe the self link should be built from the document location (http_host+request_uri) with wp_specialchars for XSS. Patch attached.

#2 @andy
13 years ago

Tested on feedvalidator and found to work with




#3 @ryan
13 years ago

  • Owner changed from anonymous to westi

#4 @westi
13 years ago

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

(In [7244]) Better self links for feeds. Fixes #5238 props andy.

Note: See TracTickets for help on using tickets.