Skip to content

Commit

Permalink
Ensure that rewrite rules are flushed after clone.
Browse files Browse the repository at this point in the history
We must make sure the database flags for already-flushed-rules
are not copied as part of the options table clone.

See #3371.
  • Loading branch information
boonebgorges committed May 7, 2024
1 parent 235242f commit 168d5fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wp-content/themes/openlab/lib/course-clone.php
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,8 @@ protected function migrate_site_settings() {
'fileupload_url',
'oplb_gradebook_db_version', // This will force reinstallation of tables.
'duplicate_post_version', // Forces duplicate-post to initialize roles
'openlab_rewrite_rules_flushed',
'openlab_modules_rewrite_rules_flushed', // Triggers rewrite rule flush post-clone.
);

$preserve_prefix = [
Expand Down

0 comments on commit 168d5fc

Please sign in to comment.