Skip to content

Commit 2fd35cb

Browse files
committed
Temporary bridge
1 parent 9f75d80 commit 2fd35cb

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

lib/compat/wordpress-7.0/collaboration.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ function gutenberg_inject_real_time_collaboration_setting() {
146146
return;
147147
}
148148

149+
// Temporary check to bridge the short time when this is change is merged in
150+
// Gutenberg but not in core.
151+
if ( ! get_option( 'wp_enable_real_time_collaboration' ) ) {
152+
return;
153+
}
154+
149155
// Disable real-time collaboration on the site editor.
150156
$enabled = true;
151157
if (

test/e2e/specs/editor/collaboration/fixtures/collaboration-utils.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,10 @@ export async function setCollaboration(
349349

350350
formData[ optionName ] = optionValue;
351351

352+
// Temporary addition to bridge the short time when this is change is merged in
353+
// Gutenberg but not in core.
354+
formData.wp_enable_real_time_collaboration = optionValue;
355+
352356
await requestUtils.request.post( '/wp-admin/options.php', {
353357
form: formData,
354358
failOnStatusCode: true,

0 commit comments

Comments
 (0)