Changeset 21664 for trunk/wp-includes/functions.php
- Timestamp:
- 08/30/2012 01:33:00 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r21541 r21664 2586 2586 function url_is_accessable_via_ssl($url) 2587 2587 { 2588 if ( in_array('curl', get_loaded_extensions())) {2589 $ssl = preg_replace( '/^http:\/\//', 'https://', $url);2588 if ( in_array( 'curl', get_loaded_extensions() ) ) { 2589 $ssl = set_url_scheme( $url, 'https' ); 2590 2590 2591 2591 $ch = curl_init(); … … 2934 2934 */ 2935 2935 function wp_guess_url() { 2936 if ( defined('WP_SITEURL') && '' != WP_SITEURL ) {2936 if ( defined('WP_SITEURL') && '' != WP_SITEURL ) 2937 2937 $url = WP_SITEURL; 2938 } else { 2939 $schema = is_ssl() ? 'https://' : 'http://'; 2940 $url = preg_replace('#/(wp-admin/.*|wp-login.php)#i', '', $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); 2941 } 2938 else 2939 $url = set_url_scheme( preg_replace( '#/(wp-admin/.*|wp-login.php)#i', '', 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ) ); 2940 2942 2941 return rtrim($url, '/'); 2943 2942 }
Note: See TracChangeset
for help on using the changeset viewer.