Typo fix: occured/occurred, props demetris, fixes #8950
git-svn-id: https://develop.svn.wordpress.org/trunk@10468 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0474a02663
commit
1875889e8c
@ -40,11 +40,11 @@ function plugins_api($action, $args = null) {
|
||||
if ( ! $res ) {
|
||||
$request = wp_remote_post('http://api.wordpress.org/plugins/info/1.0/', array( 'body' => array('action' => $action, 'request' => serialize($args))) );
|
||||
if ( is_wp_error($request) ) {
|
||||
$res = new WP_Error('plugins_api_failed', __('An Unexpected HTTP Error occured during the API request.</p> <p><a href="?" onclick="document.location.reload(); return false;">Try again</a>'), $request->get_error_message() );
|
||||
$res = new WP_Error('plugins_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() );
|
||||
} else {
|
||||
$res = unserialize($request['body']);
|
||||
if ( ! $res )
|
||||
$res = new WP_Error('plugins_api_failed', __('An unknown error occured'), $request['body']);
|
||||
$res = new WP_Error('plugins_api_failed', __('An unknown error occurred'), $request['body']);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user