Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
Fix migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
PatelUtkarsh committed Feb 6, 2017
1 parent ef77cbe commit 0374987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/class-customize-snapshot-command.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0374987

Please sign in to comment.