Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
ocean90 committed Mar 2, 2018
1 parent 37dfd72 commit 6039233
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wordpress-importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Description: Import posts, pages, comments, custom fields, categories, tags and more from a WordPress export file.
Author: wordpressdotorg
Author URI: https://wordpress.org/
Version: 0.6.3
Version: 0.6.4
Text Domain: wordpress-importer
License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
Expand Down Expand Up @@ -996,15 +996,15 @@ function fetch_remote_file( $url, $post ) {
) );

$headers = wp_remote_retrieve_headers( $remote_response );

// request failed
if ( ! $headers ) {
@unlink( $upload['file'] );
return new WP_Error( 'import_file_error', __('Remote server did not respond', 'wordpress-importer') );
}

$remote_response_code = wp_remote_retrieve_response_code( $remote_response );

// make sure the fetch was successful
if ( $remote_response_code != '200' ) {
@unlink( $upload['file'] );
Expand Down

0 comments on commit 6039233

Please sign in to comment.