mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Remove unnecessary ternary operators such as (expr) ? true : false.
git-svn-id: https://develop.svn.wordpress.org/trunk@13769 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -41,7 +41,7 @@ function wp_signon( $credentials = '', $secure_cookie = '' ) {
|
||||
do_action_ref_array('wp_authenticate', array(&$credentials['user_login'], &$credentials['user_password']));
|
||||
|
||||
if ( '' === $secure_cookie )
|
||||
$secure_cookie = is_ssl() ? true : false;
|
||||
$secure_cookie = is_ssl();
|
||||
|
||||
global $auth_secure_cookie; // XXX ugly hack to pass this to wp_authenticate_cookie
|
||||
$auth_secure_cookie = $secure_cookie;
|
||||
|
||||
Reference in New Issue
Block a user