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

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


#16600: AdminMenu rendering code chokes on uppercase
----------------------------+-----------------------------
 Reporter:  jltallon        |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  3.1
 Severity:  major           |   Keywords:  dev-feedback
----------------------------+-----------------------------
 When registering custom taxonomies for a custom post type, if the post
 type name contains uppercase letters, the menu items for the custom
 taxonomies are not shown.

 It looks like the post type name is lowercased in some parts of the core
 code (but no all) and so string comparisons fail.
 Just isolated this behaviour, so I'm still not sure how much of the core
 this affects.

 Moreover, when I saved posts with the intended mixed-case name, they have
 been saved to the DB with lowercased post_type


 It it is indeed the intended behaviour, a note should be added to the
 Codex:
  "Custom Post Type names must be lowercase"

 The attached sample (real) code reproduces the problem by setting
 "post_type_tag" to "DomainName" instead of "domain_name". Numbers work
 properly, however.

 Tested with latest SVN (RC4 + r17467)

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


More information about the wp-trac mailing list