WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.7/src/wp-includes/update.php

    r25957 r25881  
    9494        $post_body = array_merge( $post_body, $extra_stats );
    9595
    96     $url = $http_url = 'http://api.wordpress.org/core/version-check/1.7/?' . http_build_query( $query, null, '&' );
    97     if ( $ssl = wp_http_supports( array( 'ssl' ) ) )
     96    $url = 'http://api.wordpress.org/core/version-check/1.7/?' . http_build_query( $query, null, '&' );
     97    if ( wp_http_supports( array( 'ssl' ) ) )
    9898        $url = set_url_scheme( $url, 'https' );
    9999
     
    109109
    110110    $response = wp_remote_post( $url, $options );
    111     if ( $ssl && is_wp_error( $response ) ) {
    112         trigger_error( __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="http://wordpress.org/support/">support forums</a>.' ) . ' ' . '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)', headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE );
    113         $response = wp_remote_post( $http_url, $options );
    114     }
    115111
    116112    if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) )
     
    251247    );
    252248
    253     $url = $http_url = 'http://api.wordpress.org/plugins/update-check/1.1/';
    254     if ( $ssl = wp_http_supports( array( 'ssl' ) ) )
     249    $url = 'http://api.wordpress.org/plugins/update-check/1.1/';
     250    if ( wp_http_supports( array( 'ssl' ) ) )
    255251        $url = set_url_scheme( $url, 'https' );
    256252
    257253    $raw_response = wp_remote_post( $url, $options );
    258     if ( $ssl && is_wp_error( $raw_response ) ) {
    259         trigger_error( __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="http://wordpress.org/support/">support forums</a>.' ) . ' ' . '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)', headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE );
    260         $raw_response = wp_remote_post( $http_url, $options );
    261     }
    262254
    263255    if ( is_wp_error( $raw_response ) || 200 != wp_remote_retrieve_response_code( $raw_response ) )
     
    391383    );
    392384
    393     $url = $http_url = 'http://api.wordpress.org/themes/update-check/1.1/';
    394     if ( $ssl = wp_http_supports( array( 'ssl' ) ) )
     385    $url = 'http://api.wordpress.org/themes/update-check/1.1/';
     386    if ( wp_http_supports( array( 'ssl' ) ) )
    395387        $url = set_url_scheme( $url, 'https' );
    396388
    397389    $raw_response = wp_remote_post( $url, $options );
    398     if ( $ssl && is_wp_error( $raw_response ) ) {
    399         trigger_error( __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="http://wordpress.org/support/">support forums</a>.' ) . ' ' . '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)', headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE );
    400         $raw_response = wp_remote_post( $http_url, $options );
    401     }
    402390
    403391    if ( is_wp_error( $raw_response ) || 200 != wp_remote_retrieve_response_code( $raw_response ) )
Note: See TracChangeset for help on using the changeset viewer.