Changeset 25956 for trunk/src/wp-admin/includes/update.php
- Timestamp:
- 10/27/2013 09:08:25 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/update.php
r25872 r25956 104 104 $return = array(); 105 105 106 $url = 'http://api.wordpress.org/core/checksums/1.0/?' . http_build_query( compact( 'version', 'locale' ), null, '&' );107 108 if ( wp_http_supports( array( 'ssl' ) ) )106 $url = $http_url = 'http://api.wordpress.org/core/checksums/1.0/?' . http_build_query( compact( 'version', 'locale' ), null, '&' ); 107 108 if ( $ssl = wp_http_supports( array( 'ssl' ) ) ) 109 109 $url = set_url_scheme( $url, 'https' ); 110 110 … … 114 114 115 115 $response = wp_remote_get( $url, $options ); 116 if ( $ssl && is_wp_error( $response ) ) { 117 trigger_error( __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’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 ); 118 $response = wp_remote_get( $http_url, $options ); 119 } 116 120 117 121 if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) )
Note: See TracChangeset
for help on using the changeset viewer.