Fix a PHP Notice. props DD32. see #7509
git-svn-id: https://develop.svn.wordpress.org/trunk@9323 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9a5b1ac108
commit
57900b6ba9
|
@ -158,8 +158,10 @@ function wp_update_plugins() {
|
||||||
|
|
||||||
$response = unserialize( $raw_response['body'] );
|
$response = unserialize( $raw_response['body'] );
|
||||||
|
|
||||||
if ( $response )
|
if ( false !== $response )
|
||||||
$new_option->response = $response;
|
$new_option->response = $response;
|
||||||
|
else
|
||||||
|
$new_option->response = array();
|
||||||
|
|
||||||
update_option( 'update_plugins', $new_option );
|
update_option( 'update_plugins', $new_option );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue