WordPress.org

Making WordPress.org

Opened 19 months ago

Closed 3 months ago

Last modified 2 months ago

#1714 closed defect (fixed)

Plugin API should include assets for available updates

Reported by: swissspidy Owned by:
Milestone: Priority: normal
Component: API Keywords:
Cc:

Description

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.


19 months ago

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


14 months ago

#3 @pento
3 months 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
2 months ago

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

#5 @pento
2 months ago

The SVG is generated inline in the w.org 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
2 months 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 w.org

#7 @pento
2 months 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.