[wp-meta] [Making WordPress.org] #3265: Serve auto-generated plugin icons via URL

Making WordPress.org noreply at wordpress.org
Mon Nov 13 05:10:26 UTC 2017


#3265: Serve auto-generated plugin icons via URL
------------------------------+-----------------
 Reporter:  dd32              |      Owner:
     Type:  defect            |     Status:  new
 Priority:  normal            |  Milestone:
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 [https://wordpress.org/plugins/debug-bar/ 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:
 `https://s.w.org/plugins/generated-plugin-icon?name=$plugin&color=$color`
 which would allow embedding into plugins pages, as well as being served as
 a fallback SVG in the APIs.

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/3265>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list