Ticket #29079: http-args-dropped.patch
| File http-args-dropped.patch, 1.2 KB (added by , 12 years ago) |
|---|
-
src/wp-admin/includes/theme.php
337 337 if ( $ssl = wp_http_supports( array( 'ssl' ) ) ) 338 338 $url = set_url_scheme( $url, 'https' ); 339 339 340 $ args = array(340 $http_args = array( 341 341 'body' => array( 342 342 'action' => $action, 343 343 'request' => serialize( $args ) 344 344 ) 345 345 ); 346 $request = wp_remote_post( $url, $ args );346 $request = wp_remote_post( $url, $http_args ); 347 347 348 348 if ( $ssl && is_wp_error( $request ) ) { 349 349 if ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) { 350 350 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 ); 351 351 } 352 $request = wp_remote_post( $http_url, $ args );352 $request = wp_remote_post( $http_url, $http_args ); 353 353 } 354 354 355 355 if ( is_wp_error($request) ) {