Make WordPress Core


Ignore:
Timestamp:
03/19/2010 09:15:00 PM (15 years ago)
Author:
nacin
Message:

Remove unnecessary ternary operators such as (expr) ? true : false.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r13733 r13769  
    685685
    686686    if ( '' === $secure )
    687         $secure = is_ssl() ? true : false;
     687        $secure = is_ssl();
    688688
    689689    if ( $secure ) {
     
    778778    // Checks if a user is logged in, if not redirects them to the login page
    779779
    780     if ( is_ssl() || force_ssl_admin() )
    781         $secure = true;
    782     else
    783         $secure = false;
     780    $secure = ( is_ssl() || force_ssl_admin() );
    784781
    785782    // If https is required and request is http, redirect
Note: See TracChangeset for help on using the changeset viewer.