[wp-trac] [WordPress Trac] #55543: `add_menu_page` incorrectly requires SVG icon data URIs be base64 encoded

WordPress Trac noreply at wordpress.org
Thu Apr 7 23:00:35 UTC 2022


#55543: `add_menu_page` incorrectly requires SVG icon data URIs be base64 encoded
----------------------------+-----------------------------
 Reporter:  peterwilsoncc   |      Owner:  (none)
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 To determine if a developer is using an SVG in a menu, `add_menu_page`
 checks for a string beginning with `data:image/svg+xml;base64,`.

 [https://css-tricks.com/probably-dont-base64-svg/ SVGs aren't required to
 be base64 encoded] and encoding with base64 can increase the size of the
 attribute.

 The check ought to be modified to allow for additional encodings.

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


More information about the wp-trac mailing list