[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
Thu Feb 16 06:23:50 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):

 +1 for the general idea.

 We should make it easy to use a single sprite for multiple menu items. So,
 the API would look something like this:

 {{{
 register_post_type( 'foo', array(
   ...
   'sprite' => array( 'url' => 'http://.../admin-menu.png', 'column' => 1 )
 ) );

 register_post_type( 'foo', array(
   ...
   'sprite' => array( 'url' => 'http://.../admin-menu.png', 'column' => 2 )
 ) );
 }}}

 Each column in the sprite would contain all the states necessary for a
 single menu item.

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


More information about the wp-trac mailing list