WordPress.org

Make WordPress Core

Changeset 17264


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

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

Location:
trunk/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-theme-install-list-table.php

    r17262 r17264  
    9595
    9696        if ( is_wp_error( $api ) )
    97             wp_die( $api->get_error_message() . '</p> <p class="hide-if-no-js"><a href="#" onclick="document.location.reload(); return false;">' . __( 'Try again' ) . '</a>' );
     97            wp_die( $api->get_error_message() . '</p> <p><a href="#" onclick="document.location.reload(); return false;">' . __( 'Try again' ) . '</a>' );
    9898
    9999        $this->items = $api->themes;
  • 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.