From 979c717d12c9426753bd38f9311c86a824a3350c Mon Sep 17 00:00:00 2001 From: James Nylen Date: Sat, 11 Jan 2020 00:04:51 -0600 Subject: [PATCH] Set the "just migrated" flag for custom migrations too See #62, #67. --- lib/update.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/update.php b/lib/update.php index ef38d3a..3471924 100644 --- a/lib/update.php +++ b/lib/update.php @@ -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;