From 7457e380eb0be87788b9f6ea3fd4e694bb4ec83c Mon Sep 17 00:00:00 2001 From: chriszarate Date: Thu, 19 Feb 2026 16:59:03 -0500 Subject: [PATCH] Revert "Enable real-time collaboration by default (opt-out)" https://core.trac.wordpress.org/ticket/64622 --- src/wp-admin/includes/schema.php | 2 +- src/wp-includes/option.php | 2 +- tests/qunit/fixtures/wp-api-generated.js | 110 +---------------------- 3 files changed, 4 insertions(+), 110 deletions(-) diff --git a/src/wp-admin/includes/schema.php b/src/wp-admin/includes/schema.php index 1f772c929f07d..911314ea2cbf3 100644 --- a/src/wp-admin/includes/schema.php +++ b/src/wp-admin/includes/schema.php @@ -565,7 +565,7 @@ function populate_options( array $options = array() ) { 'wp_notes_notify' => 1, // 7.0.0 - 'enable_real_time_collaboration' => 1, + 'enable_real_time_collaboration' => 0, ); // 3.3.0 diff --git a/src/wp-includes/option.php b/src/wp-includes/option.php index 970ac39652195..5ed8bd56168cb 100644 --- a/src/wp-includes/option.php +++ b/src/wp-includes/option.php @@ -2892,7 +2892,7 @@ function register_initial_settings() { 'type' => 'boolean', 'description' => __( 'Enable Real-Time Collaboration' ), 'sanitize_callback' => 'rest_sanitize_boolean', - 'default' => true, + 'default' => false, 'show_in_rest' => true, ) ); diff --git a/tests/qunit/fixtures/wp-api-generated.js b/tests/qunit/fixtures/wp-api-generated.js index 046afe6730090..5caf39e3b4fdf 100644 --- a/tests/qunit/fixtures/wp-api-generated.js +++ b/tests/qunit/fixtures/wp-api-generated.js @@ -20,8 +20,7 @@ mockedApiResponse.Schema = { "wp/v2", "wp-site-health/v1", "wp-block-editor/v1", - "wp-abilities/v1", - "wp-sync/v1" + "wp-abilities/v1" ], "authentication": { "application-passwords": { @@ -12699,111 +12698,6 @@ mockedApiResponse.Schema = { } } ] - }, - "/wp-sync/v1": { - "namespace": "wp-sync/v1", - "methods": [ - "GET" - ], - "endpoints": [ - { - "methods": [ - "GET" - ], - "args": { - "namespace": { - "default": "wp-sync/v1", - "required": false - }, - "context": { - "default": "view", - "required": false - } - } - } - ], - "_links": { - "self": [ - { - "href": "http://example.org/index.php?rest_route=/wp-sync/v1" - } - ] - } - }, - "/wp-sync/v1/updates": { - "namespace": "wp-sync/v1", - "methods": [ - "POST" - ], - "endpoints": [ - { - "methods": [ - "POST" - ], - "args": { - "rooms": { - "items": { - "properties": { - "after": { - "minimum": 0, - "required": true, - "type": "integer" - }, - "awareness": { - "required": true, - "type": "object" - }, - "client_id": { - "minimum": 1, - "required": true, - "type": "integer" - }, - "room": { - "required": true, - "type": "string", - "pattern": "^[^/]+/[^/:]+(?::\\S+)?$" - }, - "updates": { - "items": { - "properties": { - "data": { - "type": "string", - "required": true - }, - "type": { - "type": "string", - "required": true, - "enum": [ - "compaction", - "sync_step1", - "sync_step2", - "update" - ] - } - }, - "required": true, - "type": "object" - }, - "minItems": 0, - "required": true, - "type": "array" - } - }, - "type": "object" - }, - "type": "array", - "required": true - } - } - } - ], - "_links": { - "self": [ - { - "href": "http://example.org/index.php?rest_route=/wp-sync/v1/updates" - } - ] - } } }, "site_logo": 0, @@ -14658,7 +14552,7 @@ mockedApiResponse.settings = { "use_smilies": true, "default_category": 1, "default_post_format": "0", - "enable_real_time_collaboration": true, + "enable_real_time_collaboration": false, "posts_per_page": 10, "show_on_front": "posts", "page_on_front": 0,