WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#11045 closed defect (bug) (invalid)

Compatibility info from plugins API

Reported by: johnbillion Owned by: ryan
Milestone: Priority: normal
Severity: normal Version:
Component: WordPress.org site Keywords:
Focuses: Cc:

Description

Using the plugin_information method of the Plugins API only returns the plugin compatibility info for WP 2.9 despite there being compatibility info available for several versions.

The announcement blog post for the new method states:

If the API knows which version of WordPress you are using (for example, if you are making this query using the plugins_api() function from with WordPress), the API will only return compatibility information for your version of WordPress.

It seems the API is returning info only for 2.9 and not the WordPress version you are using.

Is there a parameter available to request compatibility info for a particular WP version?

Change History (3)

comment:1 follow-up: dd324 years ago

if you use plugins_api() from within wordpress, it sends the current WP version along in the request.

If you're making a request from non-WP, and would like to know about another version, just changing the url param should suffice.

What use-case is there at present for individual queries from WP for a different WP version?

comment:2 in reply to: ↑ 1 johnbillion4 years ago

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

Replying to dd32:

if you use plugins_api() from within wordpress, it sends the current WP version along in the request.

Being the clever chappy that I am, I was testing this with trunk and that's why it was returning compat info for 2.9 rather than 2.8.x as I was expecting. All is well.

comment:3 Denis-de-Bernardy4 years ago

  • Milestone Unassigned deleted
Note: See TracTickets for help on using tickets.