[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.119.132.80: ~ $
<?php
/**
 * PHP and WordPress configuration compatibility functions for the Gutenberg
 * editor plugin changes related to REST API.
 *
 * @package gutenberg
 */

if ( ! defined( 'ABSPATH' ) ) {
	die( 'Silence is golden.' );
}

/**
 * Overrides the REST controller for the `wp_global_styles` post type.
 *
 * @param array $args Array of arguments for registering a post type.
 *                          See the register_post_type() function for accepted arguments.
 *
 * @return array Array of arguments for registering a post type.
 */
function gutenberg_override_global_styles_endpoint( array $args ): array {
	$args['rest_controller_class']   = 'WP_REST_Global_Styles_Controller_Gutenberg';
	$args['late_route_registration'] = true;
	$args['show_in_rest']            = true;
	$args['rest_base']               = 'global-styles';

	return $args;
}
add_filter( 'register_wp_global_styles_post_type_args', 'gutenberg_override_global_styles_endpoint' );

/**
 * Registers the Edit Site Export REST API routes.
 */
function gutenberg_register_edit_site_export_controller_endpoints() {
	$edit_site_export_controller = new WP_REST_Edit_Site_Export_Controller_Gutenberg();
	$edit_site_export_controller->register_routes();
}
add_action( 'rest_api_init', 'gutenberg_register_edit_site_export_controller_endpoints' );

Filemanager

Name Type Size Permission Actions
block-supports Folder 0755
compat Folder 0755
experimental Folder 0755
README.md File 10 KB 0644
block-editor-settings.php File 6.4 KB 0644
block-template-utils.php File 3.48 KB 0644
blocks.php File 17.26 KB 0644
class-wp-duotone-gutenberg.php File 35.61 KB 0644
class-wp-rest-edit-site-export-controller-gutenberg.php File 1.25 KB 0644
class-wp-rest-global-styles-controller-gutenberg.php File 21.86 KB 0644
class-wp-theme-json-data-gutenberg.php File 1.74 KB 0644
class-wp-theme-json-gutenberg.php File 158.1 KB 0644
class-wp-theme-json-resolver-gutenberg.php File 34.94 KB 0644
class-wp-theme-json-schema-gutenberg.php File 7.34 KB 0644
client-assets.php File 22.67 KB 0644
demo.php File 1.64 KB 0644
experiments-page.php File 7.21 KB 0644
global-styles-and-settings.php File 14.92 KB 0644
init.php File 1.12 KB 0644
interactivity-api.php File 1.24 KB 0644
load.php File 8.53 KB 0644
rest-api.php File 1.28 KB 0644
script-loader.php File 3.51 KB 0644
theme-i18n.json File 1.49 KB 0644
theme.json File 8.63 KB 0644
upgrade.php File 1.92 KB 0644