Opened 22 months ago
Last modified 22 months ago
#18351 new defect (bug)
get_term_feed_link doesn't work well on page two of archives
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Template | Version: | 3.2.1 |
| Severity: | minor | Keywords: | reporter-feedback |
| Cc: | greenshady |
Description
If you use get_term_feed_link to display the feed for an archive, for the first archive page the feed link is displayed correctly but it breaks on subsequent pages
e.g. Page 1:
http://www.WEBS1TE.com/taxonomy/term/ -->
http://www.WEBS1TE.com/taxonomy/term/feed/ (Good feed)
Page 2
http://www.WEBS1TE.com/taxonomy/term/ -->
http://www.WEBS1TE.com/taxonomy/term/page/2feed/ (broken link)
Change History (2)
Note: See
TracTickets for help on using
tickets.

WordPress doesnt produce links to paged content, infact, I dont believe it even supports paged feeds.
get_term_feed_link() also doesnt use the current url when creating the feed link, and is therefor, oblivious to the url. It does however use get_term_link() as part of the url, which if you have a filter on that, could be returning incorrect url's (They shouldn't contain paging).
Furthermore, get_term_feed_link() always trailingslash's the url from get_term_link() so theres no reason it could be created without a slash before feed.
Can you verify this on a clean slate? ie. Standard theme, And the only plugin code being what registers the taxonomy?