Skip to content

Commit

Permalink
Set the "just migrated" flag for custom migrations too
Browse files Browse the repository at this point in the history
See #62, #67.
  • Loading branch information
nylen committed Jan 11, 2020
1 parent a54738f commit 979c717
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ function classicpress_override_upgrade_page() {
// override with our own data.
wp_version_check( array(), true );

// Save a flag indicating that we've just done a migration.
set_site_transient( 'classicpress_migrated', true, 5 * 60 );

// Finished overriding the upgrade, now let it proceed in
// wp-admin/update-core.php (see `do_core_upgrade`).
return;
Expand Down

0 comments on commit 979c717

Please sign in to comment.