Making WordPress.org

Changeset 5384


Ignore:
Timestamp:
04/20/2017 09:33:18 AM (9 years ago)
Author:
ocean90
Message:

Translate, Plugin Directory: Include the short_description field when requesting plugin information.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-plugin-directory/inc/cli/class-set-plugin-project.php

    r4018 r5384  
    271271    private function get_plugin_details( $slug ) {
    272272        $http_context = $this->get_http_context();
    273         $json = @file_get_contents( "https://api.wordpress.org/plugins/info/1.0/{$slug}.json?fields=stable_tag", false, $http_context );
     273        $json = @file_get_contents( "https://api.wordpress.org/plugins/info/1.0/{$slug}.json?fields=stable_tag,short_description", false, $http_context );
    274274
    275275        $details = $json && '{' == $json[0] ? json_decode( $json ) : null;
Note: See TracChangeset for help on using the changeset viewer.