Opened 4 years ago
Closed 4 years ago
#10321 closed defect (bug) (duplicate)
Pages with an all numeric page slug show the page parent instead
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Permalinks | Version: | 2.8 |
| Severity: | normal | Keywords: | page slug permalinks |
| Cc: | wordpress@… |
Description
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.

See #5305