mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Plugin Update API: Set the translations key to an empty array when the API is unavailable. Props rmmcue. See #18200
git-svn-id: https://develop.svn.wordpress.org/trunk@25544 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user