Skip to content

Commit 9aa1d1b

Browse files
authored
Upgrades: Flush rewrite rules for #1358 (#1368)
1 parent fb39882 commit 9aa1d1b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

includes/class-migration.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ public static function maybe_migrate() {
182182
if ( \version_compare( $version_from_db, '5.2.0', '<' ) ) {
183183
Scheduler::register_schedules();
184184
}
185+
if ( \version_compare( $version_from_db, 'unreleased', '<' ) ) {
186+
add_action( 'init', 'flush_rewrite_rules', 20 );
187+
}
185188

186189
/*
187190
* Add new update routines above this comment. ^

0 commit comments

Comments
 (0)