Changeset 6464
- Timestamp:
- 01/30/2018 05:40:49 AM (7 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/standalone
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/standalone/class-plugins-info-api.php
r6463 r6464 85 85 86 86 // Backwards compatibility; the API returns null in case of error.. 87 if ( isset( $response['error'] ) && ( ! defined( 'PLUGINS_API_SUPPORTS_ERRORS' ) || ! PLUGINS_API_SUPPORTS_ERRORS ) ) { 87 // This is now feature-flagged by the PLUGINS_API_SUPPORTS_ERRORS constant which is defined as `true` in info/1.2 and later. 88 if ( isset( $response['error'] ) && ( defined( 'PLUGINS_API_SUPPORTS_ERRORS' ) && ! PLUGINS_API_SUPPORTS_ERRORS ) ) { 88 89 $this->output( null ); 89 90 return; -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/standalone/plugins-info-api.php
r6287 r6464 11 11 // Assume a standard wp-content/plugins/ plugin directory. 12 12 define( 'WPORGPATH', dirname( dirname( dirname( dirname( __DIR__ ) ) ) ) . '/' ); 13 14 define( 'PLUGINS_API_SUPPORTS_ERRORS', true ); 13 15 14 16 $_REQUEST = array(
Note: See TracChangeset
for help on using the changeset viewer.