From 6cef83f27161471fcd370ff9ff2cf6f2c92d8c34 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Sat, 21 Sep 2013 09:34:09 +0000 Subject: [PATCH] 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 --- wp-includes/update.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/update.php b/wp-includes/update.php index 77091781ec..c3904ccae3 100644 --- a/wp-includes/update.php +++ b/wp-includes/update.php @@ -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 );