[wp-trac] [WordPress Trac] #20052: Support sprites for admin menu icons in register_post_type and add_menu_page

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 17 19:57:29 UTC 2012


#20052: Support sprites for admin menu icons in register_post_type and
add_menu_page
----------------------------+-----------------------------
 Reporter:  helenyhou       |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Future Release
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |
----------------------------+-----------------------------

Comment (by ryanduff):

 Replying to [comment:15 scribu]:
 > > Passing an icon url in the post type registration and then having it
 fall back to the default if its not passed/available.
 >
 > That's already the case.

 Yup, forgot about that. Not ideal how its implemented but that's how it is
 now.

 Next suggestion would be 2 separate params... one that handled the 32x32
 screen icon and a second that handled a sprite for the two 16x16 icons for
 the menu. I think it'd be simpler/easier to leave these as a file per CPT
 instead of the intricacies of building a sprite sheet for a site. That way
 if a dev ads a new cpt there's no need to regenerate a full sprite sheet,
 instead generating one with just the 2 menu icons for that post type.

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


More information about the wp-trac mailing list