mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Plugin Update API: Set the translations key to an empty array when the API is unavailable. Props rmmcue. See #18200
Built from https://develop.svn.wordpress.org/trunk@25544 git-svn-id: http://core.svn.wordpress.org/trunk@25464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a54a345cff
commit
6cef83f271
@ -230,6 +230,7 @@ function wp_update_plugins() {
|
||||
$new_option->translations = $response['translations'];
|
||||
} else {
|
||||
$new_option->response = array();
|
||||
$new_option->translations = array();
|
||||
}
|
||||
|
||||
set_site_transient( 'update_plugins', $new_option );
|
||||
|
Loading…
Reference in New Issue
Block a user