From f9cdc3156dabbfd1be3d519b177dba7a313e139f Mon Sep 17 00:00:00 2001
From: nacin
Date: Wed, 12 Jan 2011 00:18:23 +0000
Subject: [PATCH] Leave the 'Try Again' link for the wp_die() when the themes
API fails. props solarissmoke, fixes #16132.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
wp-admin/includes/class-wp-theme-install-list-table.php | 2 +-
wp-admin/includes/theme.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/wp-admin/includes/class-wp-theme-install-list-table.php b/wp-admin/includes/class-wp-theme-install-list-table.php
index f1dc411093..9dc4d349cb 100644
--- a/wp-admin/includes/class-wp-theme-install-list-table.php
+++ b/wp-admin/includes/class-wp-theme-install-list-table.php
@@ -94,7 +94,7 @@ class WP_Theme_Install_List_Table extends WP_List_Table {
$api = themes_api( 'query_themes', $args );
if ( is_wp_error( $api ) )
- wp_die( $api->get_error_message() . '
' . __( 'Try again' ) . '' );
+ wp_die( $api->get_error_message() . '
' . __( 'Try again' ) . '' );
$this->items = $api->themes;
diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php
index ecddb5b96b..80e967418f 100644
--- a/wp-admin/includes/theme.php
+++ b/wp-admin/includes/theme.php
@@ -391,7 +391,7 @@ function themes_api($action, $args = null) {
if ( ! $res ) {
$request = wp_remote_post('http://api.wordpress.org/themes/info/1.0/', array( 'body' => array('action' => $action, 'request' => serialize($args))) );
if ( is_wp_error($request) ) {
- $res = new WP_Error('themes_api_failed', __('An Unexpected HTTP Error occurred during the API request.
Try again'), $request->get_error_message() );
+ $res = new WP_Error('themes_api_failed', __('An Unexpected HTTP Error occurred during the API request.'), $request->get_error_message() );
} else {
$res = unserialize($request['body']);
if ( ! $res )