mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user