[wp-trac] [WordPress Trac] #14238: WordPress prevents pages with numeric slugs

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 8 14:15:39 UTC 2010


#14238: WordPress prevents pages with numeric slugs
--------------------------+-------------------------------------------------
 Reporter:  vividvisions  |       Owner:                                    
     Type:  defect (bug)  |      Status:  new                               
 Priority:  normal        |   Milestone:  Awaiting Review                   
Component:  Permalinks    |     Version:  3.0                               
 Severity:  major         |    Keywords:  slug, unique, numeric, page, pages
--------------------------+-------------------------------------------------
 Numeric slugs are prevented by a preg_match against the slug in
 [http://core.trac.wordpress.org/browser/trunk/wp-includes/post.php#L2555
 Line 2,555] of wp-includes/post.php:
 {{{
 preg_match( '@^(page)?\d+$@', $slug )
 }}}
 If the slug is numeric only, a suffix is added.

 Instead of just preventing numeric-only slugs, the function should check,
 if the permalink of the page is at odds with the configured permalink
 structure and only add the suffix if this is the case.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14238>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list