[wp-trac] [WordPress Trac] #18637: Poor regex used in admin-ajax.php for user UI state

WordPress Trac wp-trac at lists.automattic.com
Sun Sep 11 18:09:16 UTC 2011


#18637: Poor regex used in admin-ajax.php for user UI state
----------------------------+--------------------
 Reporter:  MarcusPope      |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  3.3
Component:  Administration  |     Version:  3.2.1
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+--------------------

Comment (by nacin):

 Replying to [comment:3 azaozz]:
 > -1. I'd really hate to see CPT slugs like '1354345435' or even 'my-
 page-2344'. IMHO we needed to enforce that on CPT registration.

 We already do, with sanitize_key(). But there's nothing wrong with
 numbers, and we shouldn't make it more restrictive, as that'll break
 things. also think things like `411`, `thing2thing`, etc, where numbers
 are literally part of the type.

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


More information about the wp-trac mailing list