Make WordPress Core

Opened 14 years ago

Last modified 4 weeks ago

#16133 new defect (bug)

Pagination issue with tag "rss"

Reported by: paolal's profile paolal Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Canonical Keywords: has-patch needs-testing dev-feedback
Focuses: Cc:

Description (last modified by westi)

When posts use "RSS" as a tag, and the /tag/rss/ page has more posts than it is set to display on one single page, the link to page 2:

/tag/rss/page/2/

is redirected to:

/category/page/2/

Tested on Paolo Belcastro test WordPress.org :

http://test.belcastro.com/tag/rss/

Running 3.1-RC2-17229 with only Debug Bar plugin activated

This is not theme related, same behaviour with TwentyTen or Thematic on this install.

Attachments (1)

16133.diff (2.3 KB) - added by mdawaffe 14 years ago.

Download all attachments as: .zip

Change History (8)

#1 @westi
14 years ago

  • Description modified (diff)

#2 @westi
14 years ago

  • Component changed from General to Canonical
  • Milestone changed from Awaiting Review to Future Release
  • Version set to 3.0.4

mdawaffe tracked this down to likely being caused by:

http://core.trac.wordpress.org/browser/trunk/wp-includes/canonical.php#L190

I've reproduced on a 3.0.4 install too with the following permalink settings:

/%year%/%monthnum%/%postname%/

@mdawaffe
14 years ago

#3 @mdawaffe
14 years ago

  • Keywords has-patch needs-testing added

16133.diff is one idea.

Tries to catch this case with a negative lookbehind assertion. Needs testing and probably more work. I'm not sure what it breaks.

#4 @westi
14 years ago

  • Cc markjaquith added

#5 @SergeyBiryukov
12 years ago

  • Keywords tag pagination removed

Related: #21700

#6 @chriscct7
9 years ago

  • Keywords dev-feedback added
  • Version changed from 3.0.4 to 3.0

#7 @tw2113
4 weeks ago

I don't have a great idea on how to update the patch, or a best process to do so, but I am seeing similar but different issues currently with 6.6 RC1.

Instead of https://wpcore.test/tag/rss/page/2/ leading to https://wpcore.test/category/page/2/, it now leads to https://wpcore.test/tag/page/2/ with the original rss term missing in the permalink.

Note: See TracTickets for help on using tickets.