[wp-trac] [WordPress Trac] #10321: Pages with an all numeric page
slug show the page parent instead
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 1 11:57:01 UTC 2009
#10321: Pages with an all numeric page slug show the page parent instead
--------------------------+-------------------------------------------------
Reporter: wcraigtrader | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Permalinks | Version: 2.8
Severity: normal | Keywords: page slug permalinks
--------------------------+-------------------------------------------------
If you create a page whose page slug is a number (eg: 1830) then when you
view that page, Wordpress will display the page's parent page instead of
the actual page.
== Environment ==
This happens with Wordpress 2.8 (originally spotted in 2.7). It happens
with the default Theme and with no plugins.
== Example ==
I created a page named '1830' and placed it under the appropriate parent
page (Strategy Rail Games). As long as it's page slug was '1830', instead
of displaying the content for '1830', it displays the content for
'Strategy Rail Games'.
http://ludus.unicornsrest.org/games/strategy/strategy-rail-games/
http://ludus.unicornsrest.org/games/strategy/strategy-rail-games/1830/
If I change the page slug to include a letter, the page displays normally:
http://ludus.unicornsrest.org/games/strategy/strategy-rail-games/1830x/
(I've left a private page with a slug of '1830' so you can see this for
yourself.)
== Workaround ==
Change the page's slug to include a non-numeric character.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10321>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list