From 0374987015ca398b687042d67a05594a287ea1ff Mon Sep 17 00:00:00 2001 From: Utkarsh Patel Date: Mon, 6 Feb 2017 20:42:34 +0530 Subject: [PATCH] Fix migration script --- php/class-customize-snapshot-command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/class-customize-snapshot-command.php b/php/class-customize-snapshot-command.php index 317a97e4..96726c78 100644 --- a/php/class-customize-snapshot-command.php +++ b/php/class-customize-snapshot-command.php @@ -34,7 +34,7 @@ class Customize_Snapshot_Command { public function migrate( $arg, $assoc_args ) { unset( $arg ); $migrate_obj = new Migrate( get_plugin_instance() ); - if ( $migrate_obj->compat ) { + if ( $migrate_obj->plugin->compat ) { \WP_CLI::error( __( 'You\'re using older WordPress version please upgrade 4.7 or above to migrate.', 'customize-snapshots' ) ); return; }