[wp-trac] [WordPress Trac] #12597: 404 when viewing an attachment or paginated custom post type
WordPress Trac
wp-trac at lists.automattic.com
Sat Mar 13 06:58:09 UTC 2010
#12597: 404 when viewing an attachment or paginated custom post type
--------------------------+-------------------------------------------------
Reporter: greenshady | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Post Types | Version: 3.0
Severity: normal | Keywords: needs-testing
--------------------------+-------------------------------------------------
Changes (by dd32):
* keywords: => needs-testing
Comment:
Currently generated Rewrite rules for custom post_types:
{{{
'note/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => string
'index.php?note=$matches[1]&feed=$matches[2]' (length=43)
'note/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => string
'index.php?note=$matches[1]&feed=$matches[2]' (length=43)
'note/([^/]+)/page/?([0-9]{1,})/?$' => string
'index.php?note=$matches[1]&paged=$matches[2]' (length=44)
'note/([^/]+)/?$' => string 'index.php?note=$matches[1]' (length=26)
}}}
Lacks ALL endpoints (Aside from ugly paging and feeds).
Rules generated afterwards:
{{{
'note/[^/]+/attachment/([^/]+)/?$' => string
'index.php?attachment=$matches[1]' (length=32)
'note/[^/]+/attachment/([^/]+)/trackback/?$' => string
'index.php?attachment=$matches[1]&tb=1' (length=37)
'note/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' =>
string 'index.php?attachment=$matches[1]&feed=$matches[2]' (length=49)
'note/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => string
'index.php?attachment=$matches[1]&feed=$matches[2]' (length=49)
'note/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$' => string
'index.php?attachment=$matches[1]&cpage=$matches[2]' (length=50)
'note/([^/]+)/trackback/?$' => string 'index.php?note=$matches[1]&tb=1'
(length=31)
'note/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => string
'index.php?note=$matches[1]&feed=$matches[2]' (length=43)
'note/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => string
'index.php?note=$matches[1]&feed=$matches[2]' (length=43)
'note/([^/]+)/page/?([0-9]{1,})/?$' => string
'index.php?note=$matches[1]&paged=$matches[2]' (length=44)
'note/([^/]+)(/[0-9]+)?/?$' => string
'index.php?note=$matches[1]&page=$matches[2]' (length=43)
'note/[^/]+/([^/]+)/?$' => string 'index.php?attachment=$matches[1]'
(length=32)
'note/[^/]+/([^/]+)/trackback/?$' => string
'index.php?attachment=$matches[1]&tb=1' (length=37)
'note/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$' => string
'index.php?attachment=$matches[1]&feed=$matches[2]' (length=49)
'note/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$' => string
'index.php?attachment=$matches[1]&feed=$matches[2]' (length=49)
'note/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$' => string
'index.php?attachment=$matches[1]&cpage=$matches[2]' (length=50)
}}}
Seems to cover all the bases mentioned here along with everything else
thats not.
Leaving open seeking testing feedback.
Note to developers: You'll need to flush your rewrite rules after this
changeset to see any improvement.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12597#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list