WordPress.org

Make WordPress Core


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r13749 r13769  
    9393        $plugin_data['Network'] = $plugin_data['_sitewide'];
    9494    }
    95     $plugin_data['Network'] = ( 'true' == strtolower( $plugin_data['Network'] ) ) ? true : false;
     95    $plugin_data['Network'] = ( 'true' == strtolower( $plugin_data['Network'] ) );
    9696    unset( $plugin_data['_sitewide'] );
    9797
Note: See TracChangeset for help on using the changeset viewer.