From 67b6e0b490a68e59a9499ac9a828d918a1e67055 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Zieli=C5=84ski?= Date: Fri, 20 Mar 2026 16:46:00 +0100 Subject: [PATCH] Adjust the WP_ALLOW_COLLABORATION check in writing options The WP_ALLOW_COLLABORATION constant was introduced in PR #11311 to support disabling RTC at the host level or at the wp-config.php level. A part of that PR was hiding the "Enable RTC" checkbox in the writing options when RTC is explicitly disallowed via the constant. In the process of reviewing the change and merging suggestions, I have used the wrong condition to hide that checkbox. This PR makes the condition right. Props to @tyxla for noticing! \# Testing instructions * Set the WP_ALLOW_COLLABORATION constant to false, go to writing options, confirm the checkbox is replaced by a message "Real-time collaboration has been disabled". * Set it to true, confirm the checkbox is there. * Remove the constnat, confirm the checkbox is there. --- src/wp-admin/options-writing.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/options-writing.php b/src/wp-admin/options-writing.php index fdd7c50cf0408..c333d1910879f 100644 --- a/src/wp-admin/options-writing.php +++ b/src/wp-admin/options-writing.php @@ -112,7 +112,7 @@ - +

Note: Real-time collaboration has been disabled.' ); ?>