Integer URI segments in slugs not pulling proper page
|Reported by:||jchristopher||Owned by:||ryan|
I'm currently building an image gallery consisting of some parent/children pages. The structure is as follows:
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.
Change History (15)
comment:4 miqrogroove — 4 years ago
- Keywords needs-patch added; slug URI URL removed
- Milestone changed from Unassigned to 3.0
comment:5 miqrogroove — 4 years ago
- Component changed from Rewrite Rules to Permalinks
- Keywords has-patch tested added; needs-patch removed