WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 2 months ago

#20002 accepted enhancement

Update plugins_api to accept multiple slugs when querying 'plugin_information'

Reported by: DJPaul Owned by: nacin
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: WordPress.org site Keywords:
Focuses: Cc:

Description

When querying plugins_api() with 'plugin_information', the second argument takes a parameter 'slug' on which to find the plugin. Please may the API be updated to optionally accept an array of slugs, so that you can query for multiple plugins in the same HTTP request?

Change History (10)

comment:1 SergeyBiryukov2 years ago

  • Milestone changed from Awaiting Review to WordPress.org

comment:2 willmot17 months ago

  • Cc tom@… added

comment:3 willmot17 months ago

Any chance the code for the plugin API could be open sourced so that people can submit patches for things like this?

The API for browse happy has been open sourced, http://code.svn.wordpress.org

comment:4 follow-up: Otto428 months ago

  • Milestone WordPress.org deleted
  • Resolution set to wontfix
  • Status changed from new to closed

There's no core reason to do this at the moment, and the API calls are intended for core use only.

At some future point, we may make an API that is public and thus designed for public consumption instead of being heavily fixated on how core works, and then would be a perfect time to implement something like this. But not yet.

comment:5 in reply to: ↑ 4 ; follow-up: johnbillion8 months ago

Replying to Otto42:

There's no core reason to do this at the moment, and the API calls are intended for core use only.

Actually core would benefit from this on the Updates screen. When there are multiple plugin updates available, the 'plugin_information' API call is performed for each plugin individually.

comment:6 in reply to: ↑ 5 nacin8 months ago

  • Milestone set to WordPress.org
  • Resolution wontfix deleted
  • Status changed from closed to reopened

Replying to johnbillion:

Actually core would benefit from this on the Updates screen. When there are multiple plugin updates available, the 'plugin_information' API call is performed for each plugin individually.

I have no words. Let's fix this.

comment:7 nacin8 months ago

  • Owner set to nacin
  • Status changed from reopened to accepted

comment:8 samuelsidler8 months ago

  • Milestone changed from WordPress.org to 3.7

comment:9 nacin7 months ago

  • Milestone changed from 3.7 to Future Release

comment:10 johnbillion2 months ago

#21763 was marked as a duplicate.

Note: See TracTickets for help on using tickets.