Make WordPress Core


Ignore:
Timestamp:
01/12/2011 12:18:23 AM (14 years ago)
Author:
nacin
Message:

Leave the 'Try Again' link for the wp_die() when the themes API fails. props solarissmoke, fixes #16132.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/theme.php

    r17237 r17264  
    392392        $request = wp_remote_post('http://api.wordpress.org/themes/info/1.0/', array( 'body' => array('action' => $action, 'request' => serialize($args))) );
    393393        if ( is_wp_error($request) ) {
    394             $res = new WP_Error('themes_api_failed', __('An Unexpected HTTP Error occurred during the API request.</p> <p><a href="?" onclick="document.location.reload(); return false;">Try again</a>'), $request->get_error_message() );
     394            $res = new WP_Error('themes_api_failed', __('An Unexpected HTTP Error occurred during the API request.'), $request->get_error_message() );
    395395        } else {
    396396            $res = unserialize($request['body']);
Note: See TracChangeset for help on using the changeset viewer.