Changeset 10217
- Timestamp:
- 12/17/2008 05:58:07 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r10150 r10217 2036 2036 $mimes = ( is_array( $mimes ) ) ? $mimes : apply_filters( 'upload_mimes', array( 2037 2037 'jpg|jpeg|jpe' => 'image/jpeg', 2038 'jpeg' => 'image/jpeg', 2039 'jpe' => 'image/jpeg', 2038 2040 'gif' => 'image/gif', 2039 2041 'png' => 'image/png', 2040 2042 'bmp' => 'image/bmp', 2041 'tif|tiff' => 'image/tiff', 2043 'tif' => 'image/tiff', 2044 'tiff' => 'image/tiff', 2042 2045 'ico' => 'image/x-icon', 2043 2046 'asf|asx|wax|wmv|wmx' => 'video/asf', … … 2805 2808 */ 2806 2809 function is_ssl() { 2807 return ( isset($_SERVER['HTTPS']) && 'on' == strtolower($_SERVER['HTTPS']) ) ? true : false; 2810 if ( isset($_SERVER['HTTPS']) ) { 2811 if ( 'on' == strtolower($_SERVER['HTTPS']) ) 2812 return true; 2813 if ( '1' == $_SERVER['HTTPS'] ) 2814 return true; 2815 } elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) { 2816 return true; 2817 } 2818 return false; 2808 2819 } 2809 2820
Note: See TracChangeset
for help on using the changeset viewer.