[wp-trac] [WordPress Trac] #12567: make post_submit_meta_box more generic

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 1 16:42:17 UTC 2010


#12567: make post_submit_meta_box more generic
---------------------------+------------------------------------------------
 Reporter:  themattharris  |       Owner:                                                                    
     Type:  enhancement    |      Status:  new                                                               
 Priority:  normal         |   Milestone:  Awaiting Triage                                                   
Component:  Post Types     |     Version:                                                                    
 Severity:  normal         |    Keywords:  post_status, register_post_status, post_submit_meta_box, metaboxes
---------------------------+------------------------------------------------
Changes (by kevinB):

 * cc: kevinB (added)


Comment:

 The current diff does not support a type-specific edit_cap.  Why not
 define the custom edit_cap as a new element of the
 '''$post_type_object->cap''' array instead?

 I'd also prefer '''$post_type_object->statuses''' rather than
 '''$status_object->post_type'''.

 A more debatable distinction would be type-specific values for the
 show_in_select_ui and display_label properties.  To me they do belong in
 the status object.  You could make them array properties keyed by post
 type.

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


More information about the wp-trac mailing list