Ticket #31023: 31023.diff
| File 31023.diff, 2.3 KB (added by , 11 years ago) |
|---|
-
wp-includes/update.php
114 114 'body' => $post_body, 115 115 ); 116 116 117 $wp_http = new WP_Http(); 118 if ( $wp_http->block_request($url) ) { 119 return; 120 } 121 117 122 $response = wp_remote_post( $url, $options ); 118 123 if ( $ssl && is_wp_error( $response ) ) { 119 124 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="https://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 ); … … 290 295 if ( $ssl = wp_http_supports( array( 'ssl' ) ) ) 291 296 $url = set_url_scheme( $url, 'https' ); 292 297 298 $wp_http = new WP_Http(); 299 if ( $wp_http->block_request($url) ) { 300 return; 301 } 302 293 303 $raw_response = wp_remote_post( $url, $options ); 294 304 if ( $ssl && is_wp_error( $raw_response ) ) { 295 305 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="https://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 ); … … 452 462 if ( $ssl = wp_http_supports( array( 'ssl' ) ) ) 453 463 $url = set_url_scheme( $url, 'https' ); 454 464 465 $wp_http = new WP_Http(); 466 if ( $wp_http->block_request($url) ) { 467 return; 468 } 469 455 470 $raw_response = wp_remote_post( $url, $options ); 456 471 if ( $ssl && is_wp_error( $raw_response ) ) { 457 472 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="https://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 );
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)