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/tests/phpunit/tests/rest-api/rest-autosaves-controller.php

    r61833 r62058  
    571571
    572572        public function test_rest_autosave_draft_post_same_author() {
    573                 add_filter( 'pre_option_wp_enable_real_time_collaboration', '__return_zero' ); // Zero as false doesn't work for pre-flight options.
     573                add_filter( 'pre_option_wp_collaboration_enabled', '__return_zero' ); // Zero as false doesn't work for pre-flight options.
    574574
    575575                wp_set_current_user( self::$editor_id );
    … …  
    747747
    748748        public function test_update_item_draft_page_with_parent() {
    749                 add_filter( 'pre_option_wp_enable_real_time_collaboration', '__return_zero' ); // Zero as false doesn't work for pre-flight options.
     749                add_filter( 'pre_option_wp_collaboration_enabled', '__return_zero' ); // Zero as false doesn't work for pre-flight options.
    750750
    751751                wp_set_current_user( self::$editor_id );
    … …  
    931931         */
    932932        public function test_rest_autosave_draft_post_same_author_with_rtc() {
    933                 add_filter( 'pre_option_wp_enable_real_time_collaboration', '__return_true' );
     933                add_filter( 'pre_option_wp_collaboration_enabled', '__return_true' );
    934934
    935935                wp_set_current_user( self::$editor_id );
    … …  
    977977         */
    978978        public function test_update_item_draft_page_with_parent_with_rtc() {
    979                 add_filter( 'pre_option_wp_enable_real_time_collaboration', '__return_true' );
     979                add_filter( 'pre_option_wp_collaboration_enabled', '__return_true' );
    980980
    981981                wp_set_current_user( self::$editor_id );
Note: See TracChangeset for help on using the changeset viewer.