[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 11:06:14 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 scribu):
Multiplying the background position isn't usually correct. You don't need
to have 200px of padding between icons.
How about this syntax:
{{{
'menu_icon' => array(
'regular' => array(
'image_url' => $image_url,
'background_position' => '100, 200',
'background_position_hover' => '300, 400',
),
'2x' => array(
'image_url' => $image_url_2x,
'background_position' => '100, 300',
'background_position_hover' => '300, 500',
),
),
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20052#comment:29>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list