[wp-trac] [WordPress Trac] #11917: Integer URI segments in slugs not pulling proper page
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 15 20:53:13 UTC 2010
#11917: Integer URI segments in slugs not pulling proper page
---------------------------+------------------------------------------------
Reporter: jchristopher | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Rewrite Rules | Version: 2.9.1
Severity: normal | Keywords: slug, URI, URL
---------------------------+------------------------------------------------
I'm currently building an image gallery consisting of some parent/children
pages. The structure is as follows:
e.g. gallery/birthday/2009/
My permalink structure is set to WordPress 'Day and name' setting, and all
page slugs were created by WordPress (I didn't edit them myself).
Browsing the admin area is as expected, pages are nested properly and
editing works fine as well. The trouble arises when browsing the site
itself. I'm able to navigate to the gallery/ page as well as the
gallery/birthday/ "category" but as soon as I click the link to go to
gallery/birthday/2009/ the gallery/birthday/ page loads. I print_r($post)
and WordPress thinks it's displaying the parent page instead of
/gallery/birthday/2009/
I changed the slug for the 2009 page to be 'test' and all was well, the
proper page was pulled. I again changed the slug to '1000000' and the
parent page was again pulled. It appears as though slugs with URI segments
composed strictly of numbers cause things to break.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11917>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list