Make WordPress Core


Ignore:
Timestamp:
03/19/2026 07:35:44 AM (8 months ago)
Author:
ellatrix
Message:

Real-time collaboration: change to opt-in (off-by-default).

See: ​https://wordpress.slack.com/archives/C07NVJ51X6K/p1773850504196589.

We are intentionally changing the option name so that it will be off-by-default for everyone, including those that installed a beta release where the feature was on-by-default.

Developed in: ​https://github.com/WordPress/wordpress-develop/pull/11289.

Fixes #64845.
Props czarate, peterwilsoncc, jorbin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php

    r61946 r62058  
    255255                 *   document, which can lead to duplicate inserts or deletions.
    256256                 */
    257                 $is_collaboration_enabled = get_option( 'wp_enable_real_time_collaboration' );
     257                $is_collaboration_enabled = (bool) get_option( 'wp_collaboration_enabled' );
    258258
    259259                if ( $is_draft && (int) $post->post_author === $user_id && ! $post_lock && ! $is_collaboration_enabled ) {
Note: See TracChangeset for help on using the changeset viewer.