Changeset 62075 for trunk/src/wp-includes/collaboration.php
- Timestamp:
- 03/20/2026 03:25:02 PM (3 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/collaboration.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/collaboration.php
r62058 r62075 6 6 * @since 7.0.0 7 7 */ 8 9 /** 10 * Determines whether real-time collaboration is enabled. 11 * 12 * If the WP_ALLOW_COLLABORATION constant is false, 13 * collaboration is always disabled regardless of the database option. 14 * Otherwise, falls back to the 'wp_collaboration_enabled' option. 15 * 16 * @since 7.0.0 17 * 18 * @return bool Whether real-time collaboration is enabled. 19 */ 20 function wp_is_collaboration_enabled() { 21 if ( ! defined( 'WP_ALLOW_COLLABORATION' ) || ! WP_ALLOW_COLLABORATION ) { 22 return false; 23 } 24 25 return (bool) get_option( 'wp_collaboration_enabled' ); 26 } 8 27 9 28 /** … … 19 38 global $pagenow; 20 39 21 if ( ! (bool) get_option( 'wp_collaboration_enabled') ) {40 if ( ! wp_is_collaboration_enabled() ) { 22 41 return; 23 42 }
Note: See TracChangeset
for help on using the changeset viewer.