Changeset 4572
- Timestamp:
- 12/23/2016 02:10:39 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/standalone/class-plugins-info-api.php
r4570 r4572 204 204 205 205 if ( 200 != $response->status ) { 206 $response = array( 'error' => 'Temporarily Unavailable' );206 $response = array(); // WordPress includes no handling for this API being unavailable, so just return nothing. 207 207 wp_cache_set( $cache_key, $response, self::CACHE_GROUP, 30 ); // Short expiry for when we've got issues 208 208 } else { … … 210 210 wp_cache_set( $cache_key, $response, self::CACHE_GROUP, self::CACHE_EXPIRY ); 211 211 } 212 }213 214 if ( isset( $response['error'] ) ) {215 $this->output( (object) $response );216 return;217 212 } 218 213
Note: See TracChangeset
for help on using the changeset viewer.