Changeset 31363 for trunk/src/wp-admin/includes/plugin-install.php
- Timestamp:
- 02/07/2015 06:20:42 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin-install.php
r31333 r31363 71 71 $url = set_url_scheme( $url, 'https' ); 72 72 73 $ args = array(73 $http_args = array( 74 74 'timeout' => 15, 75 75 'body' => array( … … 78 78 ) 79 79 ); 80 $request = wp_remote_post( $url, $ args );80 $request = wp_remote_post( $url, $http_args ); 81 81 82 82 if ( $ssl && is_wp_error( $request ) ) { 83 83 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 ); 84 $request = wp_remote_post( $http_url, $ args );84 $request = wp_remote_post( $http_url, $http_args ); 85 85 } 86 86
Note: See TracChangeset
for help on using the changeset viewer.