Make WordPress Core


Ignore:
Timestamp:
03/20/2026 03:55:07 PM (5 days ago)
Author:
ellatrix
Message:

Real-time collaboration: Adjust the WP_ALLOW_COLLABORATION check in writing options.

The WP_ALLOW_COLLABORATION constant was introduced in [62075] to support disabling RTC at the host level or at the wp-config.php level. A part of that commit is about hiding the "Enable RTC" checkbox in the writing options when RTC is explicitly disallowed via the constant. This commit fixes an error in the condition to hide that checkbox.

Props zieladam, tyxla.
See #64904.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-writing.php

    r62075 r62078  
    113113<th scope="row"><?php _e( 'Collaboration' ); ?></th>
    114114<td>
    115     <?php if ( ! defined( 'WP_ALLOW_COLLABORATION' ) || true === WP_ALLOW_COLLABORATION ) : ?>
     115    <?php if ( defined( 'WP_ALLOW_COLLABORATION' ) && false === WP_ALLOW_COLLABORATION ) : ?>
    116116        <div class="notice notice-warning inline">
    117117            <p><?php _e( '<strong>Note:</strong> Real-time collaboration has been disabled.' ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.