[wp-trac] [WordPress Trac] #11917: Integer URI segments in slugs not pulling proper page

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 21 12:10:22 UTC 2010


#11917: Integer URI segments in slugs not pulling proper page
--------------------------+-------------------------------------------------
 Reporter:  jchristopher  |       Owner:  ryan            
     Type:  defect (bug)  |      Status:  new             
 Priority:  normal        |   Milestone:  3.0             
Component:  Permalinks    |     Version:  2.9.1           
 Severity:  normal        |    Keywords:  has-patch tested
--------------------------+-------------------------------------------------
Changes (by miqrogroove):

  * keywords:  needs-patch => has-patch tested
  * component:  Rewrite Rules => Permalinks


Comment:

 Created and tested new patch on 3.0-alpha.

 Before Patch:  Created new items with numeric slugs, and observed no
 problem with numeric slugs for posts.  Pages, on the other hand, can be
 mistaken for /yyyy/ links at the root, or for /about/n/ paged links at the
 child position.

 After Patch:  When Publishing a new page, if the slug is numeric, "-2"
 will be suffixed to the slug automatically.  Pages can then be viewed
 normally with the slug suffix.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11917#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list