[wp-trac] [WordPress Trac] #55539: add_menu_page no longer renders base64 encoded SVG icon

WordPress Trac noreply at wordpress.org
Wed Apr 6 18:38:49 UTC 2022


#55539: add_menu_page no longer renders base64 encoded SVG icon
----------------------------+-----------------------------
 Reporter:  KProvance       |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 Regarding the add_menu_page() API.

 Passing a base64 encoded string (per the instruction provided on the codex
 for this API (Pass a base64-encoded SVG using a data URI, which will be
 colored to match the color scheme. This should begin with
 'data:image/svg+xml;base64,')) in the $icon_url parameter no longer
 outputs the icon.  The base64 string no longer outputs in the HTML.

 The feature still functions properly in WP 5.9.x.  As WooCommerce uses
 this method for their primary admin menu icon, one can see it reproduced
 by installing and activating WC.

 Occurs with FF and Chrome.  Using PHP 7.4 and 8.1 alternatively.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55539>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list