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

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 1 09:58:16 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 ptahdunbar):

 Replying to [comment:259 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?

 Patch [http://core.trac.wordpress.org/ticket/12434 #12434]

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


More information about the wp-trac mailing list