[wp-trac] [WordPress Trac] #12434: Allow custom post types to have custom icons

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 1 09:50:20 UTC 2010


#12434: Allow custom post types to have custom icons
--------------------------+-------------------------------------------------
 Reporter:  ptahdunbar    |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  UI            |     Version:            
 Severity:  normal        |    Keywords:  has-patch 
--------------------------+-------------------------------------------------
 Currently all custom post types receive a id attribute of 'menu-posts'.
 This allows for them to use the posts icon. However if you want to use
 your own icon, you won't be able to select your post type as all of them
 are assigned a 'menu-posts' id.

 This patch addressing this issue by assigning custom post types with a
 'menu-$post_type' id, where $post_type is a sanitized version of the
 label.

 In addition, it abstracts all menu icons so they can be used more than
 once.

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


More information about the wp-trac mailing list