Make WordPress Core

Opened 2 years ago

Last modified 21 months ago

#55543 new enhancement

`add_menu_page` incorrectly requires SVG icon data URIs be base64 encoded

Reported by: peterwilsoncc's profile peterwilsoncc Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Administration Keywords: needs-patch
Focuses: Cc:


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,.

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.

Change History (1)

#1 @sabernhardt
21 months ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release
Note: See TracTickets for help on using tickets.