Make WordPress Core


Ignore:
Timestamp:
02/24/2026 02:28:33 AM (8 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/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php

    r61689 r61722  
    255255                 *   document, which can lead to duplicate inserts or deletions.
    256256                 */
    257                 $is_collaboration_enabled = get_option( 'enable_real_time_collaboration' );
     257                $is_collaboration_enabled = get_option( 'wp_enable_real_time_collaboration' );
    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.