Ticket #10706: strict-force-ssl.diff
| File strict-force-ssl.diff, 941 bytes (added by , 16 years ago) |
|---|
-
wp-includes/functions.php
3057 3057 * @param string|bool $force Optional. 3058 3058 * @return bool True if forced, false if not forced. 3059 3059 */ 3060 function force_ssl_login( $force = '') {3061 static $forced ;3060 function force_ssl_login( $force = null ) { 3061 static $forced = false; 3062 3062 3063 if ( '' != $force) {3063 if ( !is_null( $force ) ) { 3064 3064 $old_forced = $forced; 3065 3065 $forced = $force; 3066 3066 return $old_forced; … … 3077 3077 * @param string|bool $force 3078 3078 * @return bool True if forced, false if not forced. 3079 3079 */ 3080 function force_ssl_admin( $force = '') {3081 static $forced ;3080 function force_ssl_admin( $force = null ) { 3081 static $forced = false; 3082 3082 3083 if ( '' != $force) {3083 if ( !is_null( $force ) ) { 3084 3084 $old_forced = $forced; 3085 3085 $forced = $force; 3086 3086 return $old_forced;