Make WordPress Core


Ignore:
Timestamp:
02/24/2026 02:28:33 AM (3 months ago)
Author:
peterwilsoncc
Message:

Editor: Add wp_ prefix real time collaboration option.

Renames the option enable_real_time_collaboration to wp_enable_real_time_collaboration to include the prefix as has been the practice for new options since WordPress 5.8.0.

Props peterwilsoncc, mukesh27, parthvataliya, czarate.
See #64622.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-autosaves-controller.php

    r61697 r61722  
    571571
    572572    public function test_rest_autosave_draft_post_same_author() {
    573         $original_option = get_option( 'enable_real_time_collaboration' );
    574         update_option( 'enable_real_time_collaboration', false );
     573        $original_option = get_option( 'wp_enable_real_time_collaboration' );
     574        update_option( 'wp_enable_real_time_collaboration', false );
    575575
    576576        wp_set_current_user( self::$editor_id );
     
    608608
    609609        wp_delete_post( $post_id );
    610         update_option( 'enable_real_time_collaboration', $original_option );
     610        update_option( 'wp_enable_real_time_collaboration', $original_option );
    611611    }
    612612
     
    749749
    750750    public function test_update_item_draft_page_with_parent() {
    751         $original_option = get_option( 'enable_real_time_collaboration' );
    752         update_option( 'enable_real_time_collaboration', false );
     751        $original_option = get_option( 'wp_enable_real_time_collaboration' );
     752        update_option( 'wp_enable_real_time_collaboration', false );
    753753
    754754        wp_set_current_user( self::$editor_id );
     
    769769        $this->assertSame( self::$child_draft_page_id, $data['id'] );
    770770        $this->assertSame( self::$parent_page_id, $data['parent'] );
    771         update_option( 'enable_real_time_collaboration', $original_option );
     771        update_option( 'wp_enable_real_time_collaboration', $original_option );
    772772    }
    773773
     
    935935     */
    936936    public function test_rest_autosave_draft_post_same_author_with_rtc() {
    937         $original_option = get_option( 'enable_real_time_collaboration' );
    938         update_option( 'enable_real_time_collaboration', true );
     937        $original_option = get_option( 'wp_enable_real_time_collaboration' );
     938        update_option( 'wp_enable_real_time_collaboration', true );
    939939
    940940        wp_set_current_user( self::$editor_id );
     
    975975
    976976        wp_delete_post( $post_id );
    977         update_option( 'enable_real_time_collaboration', $original_option );
     977        update_option( 'wp_enable_real_time_collaboration', $original_option );
    978978    }
    979979
     
    983983     */
    984984    public function test_update_item_draft_page_with_parent_with_rtc() {
    985         $original_option = get_option( 'enable_real_time_collaboration' );
    986         update_option( 'enable_real_time_collaboration', true );
     985        $original_option = get_option( 'wp_enable_real_time_collaboration' );
     986        update_option( 'wp_enable_real_time_collaboration', true );
    987987
    988988        wp_set_current_user( self::$editor_id );
     
    10041004        $this->assertNotSame( self::$child_draft_page_id, $data['id'] );
    10051005        $this->assertSame( self::$child_draft_page_id, $data['parent'] );
    1006         update_option( 'enable_real_time_collaboration', $original_option );
     1006        update_option( 'wp_enable_real_time_collaboration', $original_option );
    10071007    }
    10081008}
Note: See TracChangeset for help on using the changeset viewer.