Making WordPress.org


Ignore:
Timestamp:
01/29/2018 05:42:04 AM (8 years ago)
Author:
dd32
Message:

Plugin Directory: Revert [6422] due to it breaking some clients which relied upon the null behaviour in the json endpoints too.

See #111

File:
1 edited

Legend:

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

    r6441 r6455  
    8484                }
    8585
    86                 // Backwards compatibility; the PHP api endpoints return `null` in case of an error.
    87                 if ( isset( $response['error'] ) && 'php' === $this->format ) {
     86                // Backwards compatibility; the API returns null in case of error..
     87                if ( isset( $response['error'] ) ) {
    8888                        $this->output( null );
    8989                        return;
Note: See TracChangeset for help on using the changeset viewer.