Ticket #19654: functions.patch
File functions.patch, 736 bytes (added by , 14 years ago) |
---|
-
wp-includes/functions.php
2968 2968 * @return bool True if SSL, false if not used. 2969 2969 */ 2970 2970 function is_ssl() { 2971 $is_ssl = false; 2971 2972 if ( isset($_SERVER['HTTPS']) ) { 2972 2973 if ( 'on' == strtolower($_SERVER['HTTPS']) ) 2973 returntrue;2974 $is_ssl = true; 2974 2975 if ( '1' == $_SERVER['HTTPS'] ) 2975 returntrue;2976 $is_ssl = true; 2976 2977 } elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) { 2977 returntrue;2978 $is_ssl = true; 2978 2979 } 2979 return false; 2980 $is_ssl = apply_filters( 'is_ssl', $is_ssl ); 2981 return $is_ssl; 2980 2982 } 2981 2983 2982 2984 /**