Make WordPress Core

Opened 9 years ago

Last modified 6 years ago

#20052 closed enhancement

Support sprites for admin menu icons in register_post_type and add_menu_page — at Version 4

Reported by: helenyhou Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch
Focuses: Cc:

Description (last modified by helenyhou)

We should encourage developers to maintain a consistent and beautiful admin UI by making it easier to register sprites with black and white and color versions of icons for the admin menu, namely in register_post_type() and add_menu_page() (and its wrappers).

Related: We should also do an education push and create an external web tool to make it easy to generate a properly sized, colored, and positioned sprite.

Related tickets: #20036, #19886

Change History (4)

#1 @helenyhou
9 years ago

Initial thought: have the menu_icon arg and $icon_url param take an array with a bool for whether or not it's a sprite, defaulting to false.

#2 @jeremyfelt
9 years ago

  • Cc jeremy.felt@… added

#3 @tollmanz
9 years ago

  • Cc zack@… added

#4 @helenyhou
9 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.