[wp-trac] [WordPress Trac] #9674: Better support for custom post types

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 27 04:08:24 UTC 2010


#9674: Better support for custom post types
------------------------------------+---------------------------------------
 Reporter:  wnorris                 |        Owner:  ryan    
     Type:  task (blessed)          |       Status:  reopened
 Priority:  normal                  |    Milestone:  3.0     
Component:  Administration          |      Version:  2.9     
 Severity:  normal                  |   Resolution:          
 Keywords:  has-patch tested early  |  
------------------------------------+---------------------------------------

Comment(by dd32):

 > {{{   $menu[$_wp_last_object_menu] = array(esc_attr($ptype_obj->label),
 $ptype_obj->edit_type_cap, "edit.php?post_type=$ptype", '', 'menu-top',
 'menu-posts', 'div');}}

 All the custom post_types are being created with the 'menu-posts' ID. This
 is resulting in multiple elements with the same ID.

 The Posts Icon is currently based off the ID, Thats all i can see that is
 tied to it upon a quick glance.

 Any reasons not to change the icon to a class and apply
 {{{'menu-$ptype'}}} as the ID?

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


More information about the wp-trac mailing list