Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
ad60fa6
Add setting to enable real-time collaboration
chriszarate Feb 10, 2026
a4fee8b
Register collaboration post meta
chriszarate Feb 10, 2026
18ac9b5
Add sync provider endpoints
chriszarate Feb 10, 2026
9479a51
Bugfix: When collaboration is enabled, always target autosave revision
chriszarate Feb 10, 2026
9e9eb19
Move post meta registration to wp_create_initial_post_meta
chriszarate Feb 10, 2026
4bb4f3d
Move post type registration to create_initial_post_types
chriszarate Feb 10, 2026
5794fba
Update REST namespace to match convention
chriszarate Feb 10, 2026
8054234
Add localization
chriszarate Feb 10, 2026
638fc70
Use array property notation instead of get_param
chriszarate Feb 10, 2026
e20e2d6
Miscellaneous type fixes
chriszarate Feb 10, 2026
70139a3
Update storage mechanism
chriszarate Feb 10, 2026
c021f59
Fix type hint
chriszarate Feb 13, 2026
e243e55
Tests: Add enable_real_time_collaboration to REST settings test expec…
pkevan Feb 17, 2026
1d7c319
Type hint and annotation updates
chriszarate Feb 17, 2026
18d804d
Add missing label
chriszarate Feb 17, 2026
929fb64
Improve room input validation
chriszarate Feb 17, 2026
79ad7fa
Change const name to remove unit
chriszarate Feb 17, 2026
1489067
Add static keyword
chriszarate Feb 17, 2026
c6595cf
Remove object coercion
chriszarate Feb 17, 2026
100ac11
Return boolean from storage class methods that mutate data
chriszarate Feb 17, 2026
397afe4
Improve entity handling around object IDs
chriszarate Feb 17, 2026
a14e855
Account for empty awareness array
chriszarate Feb 17, 2026
5cc6dd5
Simplify timestamp sort
chriszarate Feb 17, 2026
9944c83
Add missing @since markers
chriszarate Feb 17, 2026
a38847a
Remove unused storage initializer
chriszarate Feb 17, 2026
3cb89a2
Update test mocks
chriszarate Feb 17, 2026
4d5dcf4
Improve return types
chriszarate Feb 17, 2026
ab53f9f
Add unit tests
chriszarate Feb 18, 2026
6f8b9d6
Guard setAccessible()
chriszarate Feb 18, 2026
2f2da38
Backport should_compact change from Gutenberg
chriszarate Feb 18, 2026
a59d06a
Backport cap check from Gutenberg
chriszarate Feb 18, 2026
6c0c2cd
Guard registration of post type and REST endpoints if option is not e…
chriszarate Feb 18, 2026
0492f55
Remove unnecessary is_wp_error check
chriszarate Feb 18, 2026
1570353
Improvements from static analysis
chriszarate Feb 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/wp-admin/includes/schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,9 @@ function populate_options( array $options = array() ) {

// 6.9.0
'wp_notes_notify' => 1,

// 7.0.0
'enable_real_time_collaboration' => 0,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'enable_real_time_collaboration' => 0,
'enable_real_time_collaboration' => 1,

switch on for beta1

);

// 3.3.0
Expand Down
7 changes: 7 additions & 0 deletions src/wp-admin/options-writing.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@
</select>
</td>
</tr>
<tr>
<th scope="row"><label for="enable_real_time_collaboration"><?php _e( 'Collaboration' ); ?></label></th>
<td>
<input name="enable_real_time_collaboration" type="checkbox" id="enable_real_time_collaboration" value="1" <?php checked( '1', get_option( 'enable_real_time_collaboration' ) ); ?> />
<label for="enable_real_time_collaboration"><?php _e( 'Enable real-time collaboration' ); ?></label>
</td>
</tr>
<?php
if ( get_option( 'link_manager_enabled' ) ) :
?>
Expand Down
1 change: 1 addition & 0 deletions src/wp-admin/options.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@
'default_email_category',
'default_link_category',
'default_post_format',
'enable_real_time_collaboration',
),
);
$allowed_options['misc'] = array();
Expand Down
24 changes: 24 additions & 0 deletions src/wp-includes/collaboration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
/**
* Bootstraps collaborative editing.
*
* @package WordPress
* @since 7.0.0
*/

/**
* Injects the real-time collaboration setting into a global variable.
*
* @since 7.0.0
*
* @access private
*/
function wp_collaboration_inject_setting() {
if ( get_option( 'enable_real_time_collaboration' ) ) {
wp_add_inline_script(
'wp-core-data',
'window._wpCollaborationEnabled = true;',
'after'
);
}
}
Loading
Loading