mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +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:
@@ -3829,13 +3829,13 @@ function wp_timezone_choice( $selected_zone ) {
|
||||
|
||||
// This determines what gets set and translated - we don't translate Etc/* strings here, they are done later
|
||||
$exists = array(
|
||||
0 => ( isset( $zone[0] ) && $zone[0] ) ? true : false,
|
||||
1 => ( isset( $zone[1] ) && $zone[1] ) ? true : false,
|
||||
2 => ( isset( $zone[2] ) && $zone[2] ) ? true : false
|
||||
0 => ( isset( $zone[0] ) && $zone[0] ),
|
||||
1 => ( isset( $zone[1] ) && $zone[1] ),
|
||||
2 => ( isset( $zone[2] ) && $zone[2] ),
|
||||
);
|
||||
$exists[3] = ( $exists[0] && 'Etc' !== $zone[0] ) ? true : false;
|
||||
$exists[4] = ( $exists[1] && $exists[3] ) ? true : false;
|
||||
$exists[5] = ( $exists[2] && $exists[3] ) ? true : false;
|
||||
$exists[3] = ( $exists[0] && 'Etc' !== $zone[0] );
|
||||
$exists[4] = ( $exists[1] && $exists[3] );
|
||||
$exists[5] = ( $exists[2] && $exists[3] );
|
||||
|
||||
$zonen[] = array(
|
||||
'continent' => ( $exists[0] ? $zone[0] : '' ),
|
||||
|
||||
Reference in New Issue
Block a user