Skip to content

Commit 884f384

Browse files
shekharnwaghshekharnwaghchriszarate
authored
RTC: Remove stale wp_enable_real_time_collaboration option check (WordPress#76810)
Co-authored-by: shekharnwagh <shekharnwagh@git.wordpress.org> Co-authored-by: chriszarate <czarate@git.wordpress.org>
1 parent a063372 commit 884f384

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

lib/compat/wordpress-7.0/collaboration.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,6 @@ 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-
155149
// Disable real-time collaboration on the site editor.
156150
$enabled = true;
157151
if (

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

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

449449
formData[ optionName ] = optionValue;
450450

451-
// Temporary addition to bridge the short time when this is change is merged in
452-
// Gutenberg but not in core.
453-
formData.wp_enable_real_time_collaboration = optionValue;
454-
455451
await requestUtils.request.post( '/wp-admin/options.php', {
456452
form: formData,
457453
failOnStatusCode: true,

0 commit comments

Comments
 (0)