Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

if ( ! defined( '_GUTENBERG_VERSION_MIGRATION' ) ) {
// It's necessary to update this version every time a new migration is needed.
define( '_GUTENBERG_VERSION_MIGRATION', '23.7.0' );
define( '_GUTENBERG_VERSION_MIGRATION', '23.8.0' );
}

/**
Expand All @@ -25,7 +25,7 @@ function _gutenberg_migrate_database() {
_gutenberg_migrate_remove_fse_drafts();
}

if ( version_compare( $gutenberg_installed_version, '23.7.0', '<' ) ) {
if ( version_compare( $gutenberg_installed_version, '23.8.0', '<' ) ) {
_gutenberg_migrate_remove_legacy_collaboration_options();
}

Expand Down Expand Up @@ -70,7 +70,7 @@ function _gutenberg_migrate_remove_fse_drafts() {
* collaboration is now opt-in, so existing sites must explicitly enable the
* experiment instead of being opted in by a legacy setting.
*
* @since 23.7.0
* @since 23.8.0
*/
function _gutenberg_migrate_remove_legacy_collaboration_options() {
delete_option( 'enable_real_time_collaboration' );
Expand Down
4 changes: 3 additions & 1 deletion phpunit/tests/collaboration/collaborationUpgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ private function get_stored_option( $option_name ) {
}

public function test_removes_legacy_collaboration_options_without_enabling_the_experiment() {
update_option( 'gutenberg_version_migration', '22.8.0' );
// 23.7.2 shipped without this migration, so sites upgrading from any
// 23.7.x release must still run it.
update_option( 'gutenberg_version_migration', '23.7.2' );
update_option( 'enable_real_time_collaboration', '1' );
update_option( 'wp_enable_real_time_collaboration', '1' );
update_option( 'wp_collaboration_enabled', '1' );
Expand Down
Loading