[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:50:48 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 azaozz):
Replying to [comment:17 scribu]:
> We trade flexibility for convenience; that's what most APIs do...
Right. The problem in this case (as @helenyhou mentions in the ticket
description) is that such sprite would have to match exactly the expected
dimensions and the images (icons) inside it would have to match the
expected positions.
That seems quite harder to do. Defining the background position(s) in css
is easier. It also limits the sprite to having only these two icons. If a
CPT includes a sprite with several images used in different places,
another sprite only for the menu will have to be included making this
inefficient.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20052#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list