Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions backport-changelog/7.0/11289.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
https://github.com/WordPress/wordpress-develop/pull/11289

* https://github.com/WordPress/gutenberg/pull/76643
* https://github.com/WordPress/gutenberg/pull/76736
9 changes: 6 additions & 3 deletions lib/compat/wordpress-7.0/collaboration.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,13 @@ function gutenberg_inject_real_time_collaboration_setting() {
add_action( 'admin_init', 'gutenberg_inject_real_time_collaboration_setting' );

/**
* Core filters the default value, so hook with a higher priority to ensure the
* setting is enabled by default when the Gutenberg plugin is active.
* Core adds an option with the default value, so we need to set the option to
* our intended default when the Gutenberg plugin is activated.
*/
add_filter( 'default_option_wp_collaboration_enabled', '__return_true', 500 );
function gutenberg_set_collaboration_option_on_activation() {
update_option( 'wp_collaboration_enabled', '1' );
}
add_action( 'activate_gutenberg/gutenberg.php', 'gutenberg_set_collaboration_option_on_activation' );

/**
* Modifies the post list UI and heartbeat responses for real-time collaboration.
Expand Down
Loading