Changeset 61986
- Timestamp:
- 03/12/2026 01:12:18 PM (5 weeks ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/collaboration.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/collaboration.php
r61833 r61986 13 13 * 14 14 * @access private 15 * 16 * @global string $pagenow The filename of the current screen. 15 17 */ 16 18 function wp_collaboration_inject_setting() { 17 if ( get_option( 'wp_enable_real_time_collaboration' ) ) { 18 wp_add_inline_script( 19 'wp-core-data', 20 'window._wpCollaborationEnabled = true;', 21 'after' 22 ); 19 global $pagenow; 20 21 if ( ! get_option( 'wp_enable_real_time_collaboration' ) ) { 22 return; 23 23 } 24 25 // Disable real-time collaboration on the site editor. 26 $enabled = true; 27 if ( 'site-editor.php' === $pagenow ) { 28 $enabled = false; 29 } 30 31 wp_add_inline_script( 32 'wp-core-data', 33 'window._wpCollaborationEnabled = ' . wp_json_encode( $enabled ) . ';', 34 'after' 35 ); 24 36 }
Note: See TracChangeset
for help on using the changeset viewer.