Making WordPress.org

Changeset 5388


Ignore:
Timestamp:
04/20/2017 12:23:26 PM (10 years ago)
Author:
dd32
Message:

Plugin Directory: Fix the jsonp format for the /plugins/info/ API endpoint.
Previously this ignored the jsonp callback parameter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/standalone/class-plugins-info-api.php

    r5194 r5388  
    1010
    1111        protected $format = 'json';
     12        protected $jsonp  = false;
    1213        protected $formats = array(
    1314                'jsonp' => 'application/javascript',
    … …  
    2021                if ( is_array( $format ) && 'jsonp' == $format[0] ) {
    2122                        $this->jsonp = $format[1];
    22                         $format = 'json';
     23                        $format = 'jsonp';
    2324                }
    2425                $this->format = $format;
Note: See TracChangeset for help on using the changeset viewer.