Changeset 25308 for trunk/src/wp-includes/update.php
- Timestamp:
- 09/09/2013 07:53:15 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/update.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/update.php
r25220 r25308 77 77 78 78 $url = 'http://api.wordpress.org/core/version-check/1.7/?' . http_build_query( $query, null, '&' ); 79 80 79 if ( wp_http_supports( array( 'ssl' ) ) ) 81 80 $url = set_url_scheme( $url, 'https' ); … … 206 205 ); 207 206 208 $raw_response = wp_remote_post('http://api.wordpress.org/plugins/update-check/1.0/', $options); 207 $url = 'http://api.wordpress.org/plugins/update-check/1.0/'; 208 if ( wp_http_supports( array( 'ssl' ) ) ) 209 $url = set_url_scheme( $url, 'https' ); 210 211 $raw_response = wp_remote_post( $url, $options ); 209 212 210 213 if ( is_wp_error( $raw_response ) || 200 != wp_remote_retrieve_response_code( $raw_response ) ) … … 311 314 ); 312 315 313 $raw_response = wp_remote_post( 'http://api.wordpress.org/themes/update-check/1.0/', $options ); 316 $url = 'http://api.wordpress.org/themes/update-check/1.0/'; 317 if ( wp_http_supports( array( 'ssl' ) ) ) 318 $url = set_url_scheme( $url, 'https' ); 319 320 $raw_response = wp_remote_post( $url, $options ); 314 321 315 322 if ( is_wp_error( $raw_response ) || 200 != wp_remote_retrieve_response_code( $raw_response ) )
Note: See TracChangeset
for help on using the changeset viewer.