Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#10321 closed defect (bug) (duplicate)

Pages with an all numeric page slug show the page parent instead

Reported by: wcraigtrader Owned by: ryan
Milestone: Priority: normal
Severity: normal Version: 2.8
Component: Permalinks Keywords: page slug permalinks
Focuses: Cc:


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.


This happens with Wordpress 2.8 (originally spotted in 2.7). It happens with the default Theme and with no plugins.


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'.


If I change the page slug to include a letter, the page displays normally:


(I've left a private page with a slug of '1830' so you can see this for yourself.)


Change the page's slug to include a non-numeric character.

Change History (2)

#1 @wcraigtrader
10 years ago

  • Cc wordpress@… added

#2 @dd32
10 years ago

  • Milestone Unassigned deleted
  • Resolution set to duplicate
  • Status changed from new to closed

See #5305

Note: See TracTickets for help on using tickets.