Opened 15 months ago

Last modified 5 months ago

#20052 new enhancement

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

Reported by: helenyhou Owned by:
Priority: normal Milestone: Future Release
Component: Administration Version:
Severity: normal Keywords: has-patch
Cc: jeremy.felt@…, zack@…, xoodrew@…, ryan@…, sabreuse@…, luke.gedeon@…, pippin@…, brady@…, kovshenin@…

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)

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.

  • Cc jeremy.felt@… added
  • Cc zack@… added
  • Description modified (diff)
Note: See TracTickets for help on using tickets.