Make WordPress Core

Ticket #27738: 27738.patch

File 27738.patch, 1.1 KB (added by ocean90, 12 years ago)
  • src/wp-admin/js/theme.js

     
    325325                return $.ajax({
    326326                        url: 'https://api.wordpress.org/themes/info/1.1/?callback=?',
    327327                        dataType: 'jsonp',
     328                        timeout: 15000, // 15 seconds
    328329
    329330                        // Request data
    330331                        data: {
  • src/wp-admin/theme-install.php

     
    5656                'searchPlaceholder' => __( 'Search themes...' ), // placeholder (no ellipsis)
    5757                'upload' => __( 'Upload Theme' ),
    5858                'back'   => __( 'Back' ),
    59                 'error'  => ( 'There was a problem trying to load the themes. Please, try again.' ), // @todo improve
     59                'error'  => __( 'An unexpected error occurred. Something may be wrong with WordPress.org. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>.' )
    6060        ),
    6161        'installedThemes' => array_keys( $installed_themes ),
    6262        'browse' => array(