diff --git a/src/wp-admin/options-writing.php b/src/wp-admin/options-writing.php index 8402b131b6010..fdd7c50cf0408 100644 --- a/src/wp-admin/options-writing.php +++ b/src/wp-admin/options-writing.php @@ -112,10 +112,16 @@ - + +
+

Note: Real-time collaboration has been disabled.' ); ?>

+
+ + + register_routes(); // Collaboration. - if ( (bool) get_option( 'wp_collaboration_enabled' ) ) { + if ( wp_is_collaboration_enabled() ) { $sync_storage = new WP_Sync_Post_Meta_Storage(); $sync_server = new WP_HTTP_Polling_Sync_Server( $sync_storage ); $sync_server->register_routes(); diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php index 14a394d9e04a4..f0cec04f191f8 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php @@ -254,7 +254,7 @@ public function create_item( $request ) { * the saved post. This diff is then applied to the in-memory CRDT * document, which can lead to duplicate inserts or deletions. */ - $is_collaboration_enabled = (bool) get_option( 'wp_collaboration_enabled' ); + $is_collaboration_enabled = wp_is_collaboration_enabled(); if ( $is_draft && (int) $post->post_author === $user_id && ! $post_lock && ! $is_collaboration_enabled ) { /*