Making WordPress.org

Opened 4 months ago

Last modified 4 months ago

#3265 accepted defect

Serve auto-generated plugin icons via URL

Reported by: dd32 Owned by: Otto42
Milestone: Priority: normal
Component: Plugin Directory Keywords:


Currently the plugins auto-generated icons are passed around as base64'd data uri SVG's and output directly onto pages, and passed back directly to be displayed inline by clients.
For example, the Debug Bar plugin has this in it's source:

<style>#plugin-icon-debug-bar { background-image: url('data:image/svg+xml;base64,....

With WordPress 4.9 displaying plugin icons in the update list, plugins which only have the auto-generated icon are not shown as the data wasn't available to the update API (as it's generated on every request where needed).

It'd be far simpler if these were available through a cached-SVG request, for example:
which would allow embedding into plugins pages, as well as being served as a fallback SVG in the APIs.

Change History (3)

#1 @obenland
4 months ago

Good idea

This ticket was mentioned in Slack in #meta by tellyworth. View the logs.

4 months ago

#3 @Otto42
4 months ago

  • Owner set to Otto42
  • Status changed from new to accepted

Agreed, I'll take a look at it.

Note: See TracTickets for help on using tickets.