CoreFiles by mySites.guru
collaboration.php24 lines, 427 bytes, from wordpress-7.0-beta3.zip
Raw History Compare with 7.0-beta2
md5
4ec3f84abb00f24f3d9744132da1c3e3
sha1
6f488faac42ed66e46ad6e9e7f96f6ce7905e6cf
sha256
f7e52359dac83e443cbd7370dd58d0b71285ad207f1b2e7ef67e367fad148f2b
<?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( 'wp_enable_real_time_collaboration' ) ) {
		wp_add_inline_script(
			'wp-core-data',
			'window._wpCollaborationEnabled = true;',
			'after'
		);
	}
}

The same content is in 3 releases, WordPress 7.0-beta2 to 7.0-beta4. See them all, or every version of this file.