[wp-trac] [WordPress Trac] #25147: Allow base64 data:image with Menu Icons

WordPress Trac noreply at wordpress.org
Thu Dec 5 06:37:21 UTC 2013


#25147: Allow base64 data:image with Menu Icons
------------------------------------+---------------------
 Reporter:  wpsmith                 |       Owner:  nacin
     Type:  enhancement             |      Status:  closed
 Priority:  high                    |   Milestone:  3.8
Component:  Administration          |     Version:
 Severity:  minor                   |  Resolution:  fixed
 Keywords:  has-patch dev-feedback  |
------------------------------------+---------------------
Changes (by nacin):

 * owner:   => nacin
 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"26664"]:
 {{{
 #!CommitTicketReference repository="" revision="26664"
 Allow for Dashicons and base64-encoded data:image/svg+xml URIs when
 specifying menu icons.

 Both of these icons can be colored to match the color scheme, including
 hover states.
 Both are accepted for register_post_type()'s menu_icon argument, and also
 add_menu_page()'s $icon_url argument.

 To use a Dashicon, pass the name of the helper class, e.g. 'dashicons-
 piechart'.
 To use an SVG, pass a valid data URI string starting with
 'data:image/svg+xml;base64,'.

 props helen.
 fixes #25147.
 }}}

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


More information about the wp-trac mailing list