[wp-trac] [WordPress Trac] #16600: AdminMenu rendering code chokes on uppercase

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 20 19:02:11 UTC 2011


#16600: AdminMenu rendering code chokes on uppercase
----------------------------+------------------------------
 Reporter:  jltallon        |       Owner:
     Type:  defect (bug)    |      Status:  reopened
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  3.1
 Severity:  minor           |  Resolution:
 Keywords:  needs-codex     |
----------------------------+------------------------------

Comment (by jltallon):

 Yes, the documentation piece is needed anyway.

 Noted that sanitize_key is a bit too expensive. My "sanitize_objectname"
 could be made simpler.
 Moreover, I did not use sanitize_key (in fact, I replaced its usage for
 register_object_type) since it wraps names to lowercase, and I wanted it
 to be case-preserving.

 Call the function whatever you like, but (IMHO) we should allow
 [A-Za-z0-9_] (i.e. "identifier" as in most programming languages) for
 custom post types and custom taxonomies.

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


More information about the wp-trac mailing list