WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 5 months 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)

comment:1 helenyhou2 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.

comment:2 jeremyfelt2 years ago

  • Cc jeremy.felt@… added

comment:3 tollmanz2 years ago

  • Cc zack@… added

comment:4 helenyhou2 years ago

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