PluginProbe
Gutenberg / 9.8.0
Gutenberg v9.8.0
24.0.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 All 403 releases
← All changes | lib/load.php +53 -59 12.6.09.8.0 View file →
@@ -8,11 +8,8 @@
8 8 if ( ! defined( 'ABSPATH' ) ) {
9 9 die( 'Silence is golden.' );
10 10 }
11 11
12 -define( 'IS_GUTENBERG_PLUGIN', true );
13 -
14 -require_once __DIR__ . '/init.php';
15 12 require_once __DIR__ . '/upgrade.php';
16 13
17 14 /**
18 15 * Checks whether the Gutenberg experiment is enabled.
@@ -30,8 +27,20 @@
30 27
31 28 // These files only need to be loaded if within a rest server instance
32 29 // which this class will exist if that is the case.
33 30 if ( class_exists( 'WP_REST_Controller' ) ) {
31 + /**
32 + * Start: Include for phase 2
33 + */
34 + if ( ! class_exists( 'WP_REST_Sidebars_Controller' ) ) {
35 + require_once __DIR__ . '/class-wp-rest-sidebars-controller.php';
36 + }
37 + if ( ! class_exists( 'WP_REST_Widget_Types_Controller' ) ) {
38 + require_once __DIR__ . '/class-wp-rest-widget-types-controller.php';
39 + }
40 + if ( ! class_exists( 'WP_REST_Widgets_Controller' ) ) {
41 + require_once __DIR__ . '/class-wp-rest-widgets-controller.php';
42 + }
34 43 if ( ! class_exists( 'WP_REST_Menus_Controller' ) ) {
35 44 require_once __DIR__ . '/class-wp-rest-menus-controller.php';
36 45 }
37 46 if ( ! class_exists( 'WP_REST_Menu_Items_Controller' ) ) {
@@ -36,11 +45,8 @@
36 45 }
37 46 if ( ! class_exists( 'WP_REST_Menu_Items_Controller' ) ) {
38 47 require_once __DIR__ . '/class-wp-rest-menu-items-controller.php';
39 48 }
40 - if ( ! class_exists( 'WP_REST_Block_Navigation_Areas_Controller' ) ) {
41 - require_once __DIR__ . '/class-wp-rest-block-navigation-areas-controller.php';
42 - }
43 49 if ( ! class_exists( 'WP_REST_Menu_Locations_Controller' ) ) {
44 50 require_once __DIR__ . '/class-wp-rest-menu-locations-controller.php';
45 51 }
46 52 if ( ! class_exists( 'WP_Rest_Customizer_Nonces' ) ) {
@@ -45,79 +51,67 @@
45 51 }
46 52 if ( ! class_exists( 'WP_Rest_Customizer_Nonces' ) ) {
47 53 require_once __DIR__ . '/class-wp-rest-customizer-nonces.php';
48 54 }
49 - require_once __DIR__ . '/compat/wordpress-5.9/class-gutenberg-rest-templates-controller.php';
50 - if ( ! class_exists( 'WP_REST_Block_Editor_Settings_Controller' ) ) {
51 - require_once dirname( __FILE__ ) . '/class-wp-rest-block-editor-settings-controller.php';
55 + if ( ! class_exists( 'WP_REST_Post_Format_Search_Handler' ) ) {
56 + require_once __DIR__ . '/class-wp-rest-post-format-search-handler.php';
52 57 }
53 -
54 - if ( ! class_exists( 'WP_REST_URL_Details_Controller' ) ) {
55 - require_once __DIR__ . '/class-wp-rest-url-details-controller.php';
58 + if ( ! class_exists( 'WP_REST_Term_Search_Handler' ) ) {
59 + require_once __DIR__ . '/class-wp-rest-term-search-handler.php';
56 60 }
57 -
58 - if ( ! class_exists( 'WP_REST_Edit_Site_Export_Controller' ) ) {
59 - require_once __DIR__ . '/compat/wordpress-5.9/class-wp-rest-edit-site-export-controller.php';
61 + if ( ! class_exists( 'WP_REST_Batch_Controller' ) ) {
62 + require_once __DIR__ . '/class-wp-rest-batch-controller.php';
60 63 }
64 + if ( ! class_exists( 'WP_REST_Templates_Controller' ) ) {
65 + require_once __DIR__ . '/full-site-editing/class-wp-rest-templates-controller.php';
66 + }
67 + /**
68 + * End: Include for phase 2
69 + */
61 70
62 71 require __DIR__ . '/rest-api.php';
63 72 }
64 73
74 +if ( ! class_exists( 'WP_Widget_Block' ) ) {
75 + require_once __DIR__ . '/class-wp-widget-block.php';
76 +}
77 +
78 +require_once __DIR__ . '/widgets-page.php';
79 +
65 80 require __DIR__ . '/compat.php';
66 -require __DIR__ . '/compat/wordpress-5.9/widget-render-api-endpoint/index.php';
67 -require __DIR__ . '/compat/wordpress-5.9/blocks.php';
68 -require __DIR__ . '/compat/wordpress-5.9/block-patterns.php';
69 -require __DIR__ . '/compat/wordpress-5.9/block-template-utils.php';
70 -require __DIR__ . '/compat/wordpress-5.9/default-editor-styles.php';
71 -require __DIR__ . '/compat/wordpress-5.9/register-global-styles-cpt.php';
72 -// Needs to be loaded before get-global-styles-and-settings.php
73 -// to make sure we can use the check "function_exists( 'wp_get_global_styles' )".
74 -// If it loads after, that function will always be present at that point
75 -// and the global styles assets won't be loaded.
76 -require __DIR__ . '/compat/wordpress-5.9/script-loader.php';
77 -require __DIR__ . '/compat/wordpress-5.9/get-global-styles-and-settings.php';
78 -require __DIR__ . '/compat/wordpress-5.9/render-svg-filters.php';
79 -require __DIR__ . '/compat/wordpress-5.9/json-file-decode.php';
80 -require __DIR__ . '/compat/wordpress-5.9/translate-settings-using-i18n-schema.php';
81 -require __DIR__ . '/compat/wordpress-5.9/global-styles-css-custom-properties.php';
82 -require __DIR__ . '/compat/wordpress-5.9/class-gutenberg-block-template.php';
83 -require __DIR__ . '/compat/wordpress-5.9/templates.php';
84 -require __DIR__ . '/compat/wordpress-5.9/template-parts.php';
85 -require __DIR__ . '/compat/wordpress-5.9/theme-templates.php';
81 +require __DIR__ . '/utils.php';
86 82 require __DIR__ . '/editor-settings.php';
87 -require __DIR__ . '/compat/wordpress-5.9/class-wp-theme-json-schema-gutenberg.php';
88 -require __DIR__ . '/compat/wordpress-5.9/class-wp-theme-json-gutenberg.php';
89 -require __DIR__ . '/compat/wordpress-5.9/class-wp-theme-json-resolver-gutenberg.php';
90 -require __DIR__ . '/compat/wordpress-5.9/theme.php';
91 -require __DIR__ . '/compat/wordpress-5.9/admin-menu.php';
83 +
84 +if ( ! class_exists( 'WP_Block_Template ' ) ) {
85 + require __DIR__ . '/full-site-editing/class-wp-block-template.php';
86 +}
87 +require __DIR__ . '/full-site-editing/full-site-editing.php';
88 +require __DIR__ . '/full-site-editing/block-templates.php';
89 +require __DIR__ . '/full-site-editing/default-template-types.php';
90 +require __DIR__ . '/full-site-editing/templates-utils.php';
91 +require __DIR__ . '/full-site-editing/page-templates.php';
92 +require __DIR__ . '/full-site-editing/templates.php';
93 +require __DIR__ . '/full-site-editing/template-parts.php';
94 +require __DIR__ . '/full-site-editing/template-loader.php';
92 95 require __DIR__ . '/full-site-editing/edit-site-page.php';
93 -require __DIR__ . '/compat/wordpress-5.9/block-template.php';
94 -require __DIR__ . '/compat/wordpress-5.9/wp-theme-get-post-templates.php';
95 -require __DIR__ . '/compat/wordpress-5.9/default-theme-supports.php';
96 -require __DIR__ . '/compat/wordpress-5.9/class-wp-rest-global-styles-controller.php';
97 -require __DIR__ . '/compat/wordpress-5.9/rest-active-global-styles.php';
98 -require __DIR__ . '/compat/wordpress-5.9/move-theme-editor-menu-item.php';
99 -require __DIR__ . '/compat/wordpress-6.0/post-lock.php';
100 -require __DIR__ . '/compat/wordpress-6.0/blocks.php';
101 -require __DIR__ . '/compat/wordpress-6.0/class-gutenberg-rest-global-styles-controller.php';
102 -require __DIR__ . '/compat/wordpress-6.0/rest-api.php';
103 -require __DIR__ . '/compat/experimental/blocks.php';
96 +require __DIR__ . '/full-site-editing/edit-site-export.php';
104 97
105 98 require __DIR__ . '/blocks.php';
106 -require __DIR__ . '/block-patterns.php';
107 99 require __DIR__ . '/client-assets.php';
108 100 require __DIR__ . '/demo.php';
101 +require __DIR__ . '/widgets.php';
109 102 require __DIR__ . '/navigation.php';
110 -require __DIR__ . '/navigation-theme-opt-in.php';
111 103 require __DIR__ . '/navigation-page.php';
112 104 require __DIR__ . '/experiments-page.php';
105 +require __DIR__ . '/class-wp-theme-json.php';
106 +require __DIR__ . '/class-wp-theme-json-resolver.php';
113 107 require __DIR__ . '/global-styles.php';
114 -require __DIR__ . '/pwa.php';
115 108
116 -require __DIR__ . '/block-supports/elements.php';
109 +if ( ! class_exists( 'WP_Block_Supports' ) ) {
110 + require_once __DIR__ . '/class-wp-block-supports.php';
111 +}
112 +require __DIR__ . '/block-supports/generated-classname.php';
117 113 require __DIR__ . '/block-supports/colors.php';
114 +require __DIR__ . '/block-supports/align.php';
118 115 require __DIR__ . '/block-supports/typography.php';
116 +require __DIR__ . '/block-supports/custom-classname.php';
119 117 require __DIR__ . '/block-supports/border.php';
120 -require __DIR__ . '/block-supports/layout.php';
121 -require __DIR__ . '/block-supports/spacing.php';
122 -require __DIR__ . '/block-supports/dimensions.php';
123 -require __DIR__ . '/block-supports/duotone.php';