WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#18477 closed enhancement (fixed)

Action to return a plugin's SVN tags and tag info on API.WP.org

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

Description

Currently, for the Plugin Beta Tester (plugin) we have to scrape data from the .org site. This is not optimal for a number of reasons, one of which that there's an API for plugin data already out there at api.wordpress.org which could instead be utilized to get back pure data vs scraping.

This plugin's goal is to be able to lookup new alpha/beta/rc versions which have been tagged.

plugins_api( 'plugin_versions', array( 'slug' => 'my-plugin' ) );

The above PHP call within WP could return an object or array of all the plugin's versions available (tagged + trunk), and each version's info. The type of information that would be very useful for our plugin in particular would be:

  • Version (version found in the plugin's main header info)
  • Date Modified
  • Download link to the ZIP

This function call data should really mirror what you'd expect to see from the "Other Versions" section of the plugin page (example: http://wordpress.org/extend/plugins/buddypress/download/)

Change History (10)

comment:1 @sc0ttkclark4 years ago

  • Cc lol@… added

comment:2 @scribu4 years ago

  • Cc scribu added

comment:3 @scribu4 years ago

  • Type changed from defect (bug) to enhancement

comment:4 @SergeyBiryukov4 years ago

  • Milestone changed from Awaiting Review to WordPress.org

comment:5 @GaryJ4 years ago

  • Cc gary@… added

comment:6 @sc0ttkclark4 years ago

Checking in to see if there's anything you need from me, thanks again @nacin!

comment:7 @sc0ttkclark4 years ago

Pods 2.0 funding has been successful and during the process of development, I'll be fleshing out the new Plugin Beta Tester version with the code mentioned in this ticket. Any chance we can get the ticket completed and closed so the plugin's tag checks are more reliable?

comment:8 @sc0ttkclark4 years ago

Just checking in, our Alpha / Beta testing period begins next week. What level of effort is this ticket and is it something you think would take a few more weeks?

comment:9 @nacin4 years ago

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

Try this:

plugins_api( 'plugin_information', array( 'slug' => $plugins, 'fields' => array( 'versions' => true ) ) );

It returns the same data that's on WP.org /download/ pages.

Note that our own DB doesn't store tags; it reads these directly from SVN. So if you want modified dates you can pull them manually from SVN.

comment:10 @sc0ttkclark4 years ago

Thanks for the update, I'll get to work on using it!

Note: See TracTickets for help on using tickets.