[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 Jul 27 12:11:47 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 kovshenin):

 Replying to [comment:29 scribu]:

 > Multiplying the background position isn't usually correct. You don't
 need to have 200px of padding between icons.

 You're right! When the 2x image is exactly 2x larger than the original,
 the background positions will remain the same. It's only the background-
 size that's going to have to scale down, so we'll probably need that as
 the fourth argument to the 2x array.

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


More information about the wp-trac mailing list