WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 6 years ago

Last modified 6 years ago

#18351 closed defect (bug) (invalid)

get_term_feed_link doesn't work well on page two of archives

Reported by: deadhippo Owned by:
Milestone: Priority: normal
Severity: minor Version: 3.2.1
Component: Template Keywords:
Focuses: Cc:

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 (4)

#1 @dd32
8 years ago

  • Keywords reporter-feedback added; needs-codex removed

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?

#2 @dd32
8 years ago

  • Component changed from Taxonomy to Template

#3 @c3mdigital
6 years ago

  • Keywords reporter-feedback removed
  • Resolution set to invalid
  • Status changed from new to closed

Invalid, feeds are not paged.

#4 @SergeyBiryukov
6 years ago

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