Make WordPress Core


Ignore:
Timestamp:
03/20/2026 03:25:02 PM (3 months ago)
Author:
ellatrix
Message:

Real-time collaboration: Add WP_ALLOW_COLLABORATION constant.

This provides an easy way at config level to disable real-time collaboration.

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

See #64904.
Props alecgeatches, ingeniumed, zieladam, peterwilsoncc, tyxla.

File:
1 edited

Legend:

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

    r62058 r62075  
    255255         *   document, which can lead to duplicate inserts or deletions.
    256256         */
    257         $is_collaboration_enabled = (bool) get_option( 'wp_collaboration_enabled' );
     257        $is_collaboration_enabled = wp_is_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.