Commit 5d55c104 authored by Joe Hoyle's avatar Joe Hoyle
Browse files

Don't delete the original attachment image, just in case

parent 97789d04
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -37,7 +37,6 @@ class S3_Uploads_WP_CLI_Command extends WP_CLI_Command {
		if ( file_exists( $path = $old_upload_dir['basedir'] . '/' . $file ) ) {

			copy( $path, get_attached_file( $args[0] ) );
			unlink( $path );
			WP_CLI::success( sprintf( 'Moved attachment %d to S3', $args[0] ) ); 
		} else {
			WP_CLI::line( 'Already moved to S3' );