[wp-trac] [WordPress Trac] #14029: custom post types: "page-attributes" should be "page-attributes"

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 21 18:55:05 UTC 2010


#14029: custom post types: "page-attributes" should be "page-attributes"
-------------------------+--------------------------------------------------
 Reporter:  F J Kaiser   |       Owner:            
     Type:  enhancement  |      Status:  new       
 Priority:  normal       |   Milestone:  Unassigned
Component:  Post Types   |     Version:            
 Severity:  minor        |    Keywords:            
-------------------------+--------------------------------------------------

Comment(by nacin):

 For theme and post type support arguments, we consistently use hyphens.
 post-thumbnails is where it started (which was very widely publicized to
 theme developers and the like), and it continued for custom-fields and
 page-attributes. 'supports' is just a wrapper for
 register_post_type_support.

 I agree it has the potential to be confusing, but it is separate in that
 these are not array keys, they are values. Capabilities are separated with
 underscores so if you set fine-grained capability control then you will
 use underscores; while supports arguments have been using hyphens for some
 time and therefore they will stay.

 This is trivial, and the Codex and code documents this well, so I'm
 suggesting wontfix.

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


More information about the wp-trac mailing list