Skip to content

Commit 702af38

Browse files
committed
Real-time collaboration: change to opt-in.
Developed in WordPress#10982. Props czarate. Fixes #64622. git-svn-id: https://develop.svn.wordpress.org/trunk@61702 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 73ac8ee commit 702af38

File tree

3 files changed

+4
-110
lines changed

3 files changed

+4
-110
lines changed

src/wp-admin/includes/schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ function populate_options( array $options = array() ) {
565565
'wp_notes_notify' => 1,
566566

567567
// 7.0.0
568-
'enable_real_time_collaboration' => 1,
568+
'enable_real_time_collaboration' => 0,
569569
);
570570

571571
// 3.3.0

src/wp-includes/option.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2892,7 +2892,7 @@ function register_initial_settings() {
28922892
'type' => 'boolean',
28932893
'description' => __( 'Enable Real-Time Collaboration' ),
28942894
'sanitize_callback' => 'rest_sanitize_boolean',
2895-
'default' => true,
2895+
'default' => false,
28962896
'show_in_rest' => true,
28972897
)
28982898
);

tests/qunit/fixtures/wp-api-generated.js

Lines changed: 2 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ mockedApiResponse.Schema = {
2020
"wp/v2",
2121
"wp-site-health/v1",
2222
"wp-block-editor/v1",
23-
"wp-abilities/v1",
24-
"wp-sync/v1"
23+
"wp-abilities/v1"
2524
],
2625
"authentication": {
2726
"application-passwords": {
@@ -12699,111 +12698,6 @@ mockedApiResponse.Schema = {
1269912698
}
1270012699
}
1270112700
]
12702-
},
12703-
"/wp-sync/v1": {
12704-
"namespace": "wp-sync/v1",
12705-
"methods": [
12706-
"GET"
12707-
],
12708-
"endpoints": [
12709-
{
12710-
"methods": [
12711-
"GET"
12712-
],
12713-
"args": {
12714-
"namespace": {
12715-
"default": "wp-sync/v1",
12716-
"required": false
12717-
},
12718-
"context": {
12719-
"default": "view",
12720-
"required": false
12721-
}
12722-
}
12723-
}
12724-
],
12725-
"_links": {
12726-
"self": [
12727-
{
12728-
"href": "http://example.org/index.php?rest_route=/wp-sync/v1"
12729-
}
12730-
]
12731-
}
12732-
},
12733-
"/wp-sync/v1/updates": {
12734-
"namespace": "wp-sync/v1",
12735-
"methods": [
12736-
"POST"
12737-
],
12738-
"endpoints": [
12739-
{
12740-
"methods": [
12741-
"POST"
12742-
],
12743-
"args": {
12744-
"rooms": {
12745-
"items": {
12746-
"properties": {
12747-
"after": {
12748-
"minimum": 0,
12749-
"required": true,
12750-
"type": "integer"
12751-
},
12752-
"awareness": {
12753-
"required": true,
12754-
"type": "object"
12755-
},
12756-
"client_id": {
12757-
"minimum": 1,
12758-
"required": true,
12759-
"type": "integer"
12760-
},
12761-
"room": {
12762-
"required": true,
12763-
"type": "string",
12764-
"pattern": "^[^/]+/[^/:]+(?::\\S+)?$"
12765-
},
12766-
"updates": {
12767-
"items": {
12768-
"properties": {
12769-
"data": {
12770-
"type": "string",
12771-
"required": true
12772-
},
12773-
"type": {
12774-
"type": "string",
12775-
"required": true,
12776-
"enum": [
12777-
"compaction",
12778-
"sync_step1",
12779-
"sync_step2",
12780-
"update"
12781-
]
12782-
}
12783-
},
12784-
"required": true,
12785-
"type": "object"
12786-
},
12787-
"minItems": 0,
12788-
"required": true,
12789-
"type": "array"
12790-
}
12791-
},
12792-
"type": "object"
12793-
},
12794-
"type": "array",
12795-
"required": true
12796-
}
12797-
}
12798-
}
12799-
],
12800-
"_links": {
12801-
"self": [
12802-
{
12803-
"href": "http://example.org/index.php?rest_route=/wp-sync/v1/updates"
12804-
}
12805-
]
12806-
}
1280712701
}
1280812702
},
1280912703
"site_logo": 0,
@@ -14658,7 +14552,7 @@ mockedApiResponse.settings = {
1465814552
"use_smilies": true,
1465914553
"default_category": 1,
1466014554
"default_post_format": "0",
14661-
"enable_real_time_collaboration": true,
14555+
"enable_real_time_collaboration": false,
1466214556
"posts_per_page": 10,
1466314557
"show_on_front": "posts",
1466414558
"page_on_front": 0,

0 commit comments

Comments
 (0)