Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#1714 closed defect (bug) (fixed)

Plugin API should include assets for available updates

Reported by: swissspidy's profile swissspidy Owned by:
Milestone: Priority: normal
Component: API Keywords:


As mentioned in #1579 and #wp30186 it would be great if the plugin updates API would include the URLs to a plugin's icon and perhaps the banner as well.

This would pave the way for an improved plugin list table and list of available updates.

Ideally, we could roll this out together with Shiny Updates V2, where we already show icons for all other available updates, just not for plugins.

Change History (7)

This ticket was mentioned in Slack in #feature-shinyupdates by swissspidy. View the logs.

8 years ago

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

8 years ago

#3 @pento
7 years ago

  • Resolution set to fixed
  • Status changed from new to closed

The update API now returns arrays of icons and banners, when available.

(As of ~15 minutes from this post, when the cache expires.)

#4 @swissspidy
7 years ago

@pento It doesn't look like the API returns default icons (the randomized SVG ones) when there is none.

#5 @pento
7 years ago

The SVG is generated inline in the HTML, there isn't an image URL to refer to.

If there isn't an icon provided in the API response, the app (including WordPress) should use a local icon.

#6 @swissspidy
7 years ago

Hmm, the regular plugins API does send the SVG though. AFAIK the GeoPattern library isn't part of core and we'd need to include it to have the default icons match the ones from

#7 @pento
7 years ago

Not that easy, unfortunately. The GeoPattern code really doesn't like being run outside of the context of the plugin directory plugin, and the update-check API isn't even close to being able to run that.

Note: See TracTickets for help on using tickets.