Make WordPress Core


Ignore:
Timestamp:
03/04/2026 08:04:35 PM (6 months ago)
Author:
ellatrix
Message:

Real-time collaboration: enable by default.

The option name is changed since the previous option name set a default value during database initialization. A default is no longer needed since the default is false.

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

Fixes #64622.
Props czarate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-sync-server.php

    r61722 r61828  
    1515
    1616        public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
    17                 update_option( 'wp_enable_real_time_collaboration', true );
     17                add_filter( 'pre_option_wp_disable_real_time_collaboration', '__return_false' );
    1818
    1919                self::$editor_id     = $factory->user->create( array( 'role' => 'editor' ) );
     
    2626                self::delete_user( self::$subscriber_id );
    2727                wp_delete_post( self::$post_id, true );
    28                 delete_option( 'wp_enable_real_time_collaboration' );
     28                remove_filter( 'pre_option_wp_disable_real_time_collaboration', '__return_false' );
    2929        }
    3030
Note: See TracChangeset for help on using the changeset viewer.