Changeset 16699 for trunk/wp-admin/includes/theme.php
- Timestamp:
- 12/02/2010 11:30:21 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/theme.php
r16696 r16699 390 390 $request = wp_remote_post('http://api.wordpress.org/themes/info/1.0/', array( 'body' => array('action' => $action, 'request' => serialize($args))) ); 391 391 if ( is_wp_error($request) ) { 392 $res = new WP_Error('themes_api_failed', __('An Unexpected HTTP Error occur ed during the API request.</p> <p><a href="?" onclick="document.location.reload(); return false;">Try again</a>'), $request->get_error_message() );392 $res = new WP_Error('themes_api_failed', __('An Unexpected HTTP Error occurred during the API request.</p> <p><a href="?" onclick="document.location.reload(); return false;">Try again</a>'), $request->get_error_message() ); 393 393 } else { 394 394 $res = unserialize($request['body']); 395 395 if ( ! $res ) 396 $res = new WP_Error('themes_api_failed', __('An unknown error occur ed'), $request['body']);396 $res = new WP_Error('themes_api_failed', __('An unknown error occurred'), $request['body']); 397 397 } 398 398 }
Note: See TracChangeset
for help on using the changeset viewer.