CoreFiles by mySites.guru
collaboration.php24 lines, 424 bytes, from wordpress-7.0-beta1.zip
Raw History Compare with 6.9-beta4
md5
b8fbedef7a038b9c9115d8ec9debc071
sha1
c34000b236c7056827a4c309ed202b10c84da3f0
sha256
1e4ce30bd218207b439ea8b5890b49fbe58846196d3e5591ea50ed75f17a08b0
<?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'
		);
	}
}

No other release has this exact content. See every version of this file.