Skip to content

Commit 29620ae

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@62078 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 19bef0e commit 29620ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-admin/options-writing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
<tr>
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>
118118
</div>

0 commit comments

Comments
 (0)