PluginProbe
Gutenberg / 6.7.0
Gutenberg v6.7.0
23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 7.4.0 All 402 releases
gutenberg / lib / load.php

load.php in Gutenberg 6.7.0, at lib/load.php

50 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Load API functions, register scripts and actions, etc.
4 *
5 * @package gutenberg
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 die( 'Silence is golden.' );
10 }
11
12 // These files only need to be loaded if within a rest server instance
13 // which this class will exist if that is the case.
14 if ( class_exists( 'WP_REST_Controller' ) ) {
15 /**
16 * Start: Include for phase 2
17 */
18 if ( ! class_exists( 'WP_REST_Widget_Updater_Controller' ) ) {
19 require dirname( __FILE__ ) . '/class-wp-rest-widget-updater-controller.php';
20 }
21 if ( ! class_exists( 'WP_REST_Widget_Areas_Controller' ) ) {
22 require dirname( __FILE__ ) . '/class-experimental-wp-widget-blocks-manager.php';
23 require dirname( __FILE__ ) . '/class-wp-rest-widget-areas-controller.php';
24 }
25 /**
26 * End: Include for phase 2
27 */
28
29 if ( ! class_exists( 'WP_REST_Block_Directory_Controller' ) ) {
30 require dirname( __FILE__ ) . '/class-wp-rest-block-directory-controller.php';
31 }
32
33 require dirname( __FILE__ ) . '/rest-api.php';
34 }
35
36 if ( ! class_exists( 'WP_Block_Styles_Registry' ) ) {
37 require dirname( __FILE__ ) . '/class-wp-block-styles-registry.php';
38 }
39
40 require dirname( __FILE__ ) . '/compat.php';
41
42 require dirname( __FILE__ ) . '/blocks.php';
43 require dirname( __FILE__ ) . '/templates.php';
44 require dirname( __FILE__ ) . '/client-assets.php';
45 require dirname( __FILE__ ) . '/demo.php';
46 require dirname( __FILE__ ) . '/widgets.php';
47 require dirname( __FILE__ ) . '/widgets-page.php';
48 require dirname( __FILE__ ) . '/experiments-page.php';
49 require dirname( __FILE__ ) . '/customizer.php';
50