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:
Andrew Nacin
2010-03-19 21:15:00 +00:00
parent 2bcc218df8
commit ddc506f01c
14 changed files with 22 additions and 25 deletions

View File

@@ -866,7 +866,7 @@ class WP_Import {
break;
case 2:
check_admin_referer('import-wordpress');
$fetch_attachments = (!empty($_POST['attachments'])) ? true : false;
$fetch_attachments = ! empty( $_POST['attachments'] );
$result = $this->import( $_GET['id'], $fetch_attachments);
if ( is_wp_error( $result ) )
echo $result->get_error_message();