From 742d1cad39422409313100ea41284974ab6210cc Mon Sep 17 00:00:00 2001 From: mmtr <1233880+mmtr@users.noreply.github.com> Date: Fri, 8 May 2026 12:54:22 +0200 Subject: [PATCH] RTC: Re-enable RTC by default on WoW sites The CRDT-document bug that motivated #48199 was fixed upstream in WordPress/gutenberg#77529 (shipped in Gutenberg 23.0, already deployed to Atomic sites), so we can drop the IS_ATOMIC early-return that forced the default to disabled on WoW. Fixes DOTCOM-17053 --- .../dotcom-16781-temporarily-disable-rtc-on-atomic-sites | 4 ---- .../dotcom-17053-re-enable-rtc-by-default-on-wow-sites | 4 ++++ projects/packages/rtc/src/class-rtc.php | 6 ------ 3 files changed, 4 insertions(+), 10 deletions(-) delete mode 100644 projects/packages/rtc/changelog/dotcom-16781-temporarily-disable-rtc-on-atomic-sites create mode 100644 projects/packages/rtc/changelog/dotcom-17053-re-enable-rtc-by-default-on-wow-sites diff --git a/projects/packages/rtc/changelog/dotcom-16781-temporarily-disable-rtc-on-atomic-sites b/projects/packages/rtc/changelog/dotcom-16781-temporarily-disable-rtc-on-atomic-sites deleted file mode 100644 index af33a1bd236b..000000000000 --- a/projects/packages/rtc/changelog/dotcom-16781-temporarily-disable-rtc-on-atomic-sites +++ /dev/null @@ -1,4 +0,0 @@ -Significance: patch -Type: changed - -RTC: Temporarily disable RTC on Atomic sites diff --git a/projects/packages/rtc/changelog/dotcom-17053-re-enable-rtc-by-default-on-wow-sites b/projects/packages/rtc/changelog/dotcom-17053-re-enable-rtc-by-default-on-wow-sites new file mode 100644 index 000000000000..e066f33b2e5d --- /dev/null +++ b/projects/packages/rtc/changelog/dotcom-17053-re-enable-rtc-by-default-on-wow-sites @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +RTC: Re-enable RTC by default on WoW sites diff --git a/projects/packages/rtc/src/class-rtc.php b/projects/packages/rtc/src/class-rtc.php index 5d740810c6a6..ea21342641f6 100644 --- a/projects/packages/rtc/src/class-rtc.php +++ b/projects/packages/rtc/src/class-rtc.php @@ -243,12 +243,6 @@ public static function default_rtc_option( $default = '', $option = '' ) { if ( ! self::is_allowed() ) { return '0'; } - - // Temporarily disable RTC while an issue with CRDT documents is investigated/fixed. - if ( defined( 'IS_ATOMIC' ) && IS_ATOMIC ) { - return '0'; - } - // RTC allowed and option is not stored yet if ( $option === self::OPTION_NEW ) { // If the old option is set, use that.