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

WordPress Trac noreply at wordpress.org
Thu Apr 7 08:00:04 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:  6.0
Component:  Administration  |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:  administration
----------------------------+-----------------------------

Comment (by kebbet):

 Changing line 132 in wp-admin/menu-header.php to
 {{{
 $img_style = ' style="background-image:url(\'' . esc_attr( $item[6] ) .
 '\')"';
 }}}
 fixes the issue. I can make a PR for this at GitHub.

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


More information about the wp-trac mailing list