Fix a PHP Notice. props DD32. see #7509
git-svn-id: http://svn.automattic.com/wordpress/trunk@9323 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c3c2c50844
commit
6f28d769a0
|
@ -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