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

Migrate to changesets notice also shows when somebody has directly installed WordPress > 4.7 #123

Closed
mohdsayed opened this issue Feb 25, 2017 · 0 comments
Assignees
Milestone

Comments

@mohdsayed
Copy link
Contributor

mohdsayed commented Feb 25, 2017

"Existing Snapshots need to be migrated to Changesets, which was added to core in WordPress 4.7." notice should not show if somebody has directly installed WordPress > 4.7, or there are no changesets to migrate.

May be we can do this here https://github.com/xwp/wp-customize-snapshots/blob/develop/php/class-migrate.php#L51-L57

if ( ! $this->is_migrated() ) {
    if ( empty( $this->changeset_migrate( 1, true ) ) ) {
        update_option( self::KEY, 1 );
        return;
    }
    // Add actions...
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants