[wp-trac] [WordPress Trac] #21209: Pagination on bare category slugs returns 404 errors
WordPress Trac
wp-trac at lists.automattic.com
Mon Jul 16 16:34:42 UTC 2012
#21209: Pagination on bare category slugs returns 404 errors
--------------------------+-----------------------
Reporter: nkinkade | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.4.2
Component: Permalinks | Version: 3.4.1
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+-----------------------
Changes (by SergeyBiryukov):
* keywords: => has-patch
* status: closed => reopened
* resolution: duplicate =>
* milestone: => 3.4.2
Comment:
Reopening after more investigation
([https://irclogs.wordpress.org/chanlog.php?channel=wordpress-
dev&day=2012-07-16&sort=asc#m422658 IRC logs]).
Like I said, with `/%category%/%postname%/` structure the issue can be
reproduced in 3.3 as well (and is a duplicate of #8905).
However, with these structures bare category URLs pagination used to work
in 3.3 and no longer works in 3.4.1:
{{{
/%category%/%year%/%monthnum%/%day%/%postname%/
/%category%/%postname%.html
}}}
As mentioned in [http://wordpress.org/support/topic/wordpress-34-and-
pagination-custom-post-type-error this thread], there were two rewrite
rules in 3.3 which are missing in 3.4.1:
{{{
[(.+?)/([^/]+)/page/?([0-9]{1,})/?$] =>
index.php?category_name=$matches[1]&name=$matches[2]&paged=$matches[3]
[(.+?)/page/?([0-9]{1,})/?$] =>
index.php?category_name=$matches[1]&paged=$matches[2]
}}}
[attachment:21209.patch] fixes the issue by reverting one more piece of
[19737].
Related: #19876, #21020
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21209#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list