diff --git a/src/Admin/ImportExport.php b/src/Admin/ImportExport.php index 72633c837..465b87537 100644 --- a/src/Admin/ImportExport.php +++ b/src/Admin/ImportExport.php @@ -216,8 +216,9 @@ public function importRequest() 'rb' ); - if ( !$file ) wp_send_json_error('Can\'t read the file.'); - + if (! $file) { + wp_send_json_error("Can't read the file."); + } $json = fread( $file,