PluginProbe
Gutenberg / 24.1.0
Gutenberg v24.1.0
24.1.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 All 404 releases
← All changes | lib/experimental/editor-settings.php +0 -23 23.8.0 → 24.1.0 View file →
@@ -10,11 +10,8 @@
10 10 */
11 11 function gutenberg_enable_experiments() {
12 12 global $pagenow;
13 13
14 - if ( gutenberg_is_experiment_enabled( 'gutenberg-color-randomizer' ) ) {
15 - wp_add_inline_script( 'wp-block-editor', 'window.__experimentalEnableColorRandomizer = true', 'before' );
16 - }
17 14 if ( gutenberg_is_experiment_enabled( 'gutenberg-grid-interactivity' ) ) {
18 15 wp_add_inline_script( 'wp-block-editor', 'window.__experimentalEnableGridInteractivity = true', 'before' );
19 16 }
20 17 if ( gutenberg_is_experiment_enabled( 'gutenberg-global-styles-inheritance-ui' ) ) {
@@ -22,14 +19,8 @@
22 19 }
23 20 if ( gutenberg_is_experiment_enabled( 'gutenberg-dataviews-media-modal' ) ) {
24 21 wp_add_inline_script( 'wp-block-editor', 'window.__experimentalDataViewsMediaModal = true', 'before' );
25 22 }
26 - if ( gutenberg_is_experiment_enabled( 'gutenberg-content-only-inspector-fields' ) ) {
27 - wp_add_inline_script( 'wp-block-editor', 'window.__experimentalContentOnlyInspectorFields = true', 'before' );
28 - }
29 - if ( gutenberg_is_experiment_enabled( 'active_templates' ) ) {
30 - wp_add_inline_script( 'wp-block-editor', 'window.__experimentalTemplateActivate = true', 'before' );
31 - }
32 23 if ( gutenberg_is_experiment_enabled( 'gutenberg-extensible-site-editor' ) ) {
33 24 wp_add_inline_script( 'wp-block-editor', 'window.__experimentalExtensibleSiteEditor = true', 'before' );
34 25 }
35 26 if ( gutenberg_is_experiment_enabled( 'gutenberg-dataform-inspector' ) ) {
@@ -58,25 +49,11 @@
58 49 add_action( 'admin_init', 'gutenberg_enable_experiments' );
59 50 add_action( 'site-editor-v2_init', 'gutenberg_enable_experiments' );
60 51
61 52 /**
62 - * Sets a global JS variable used to trigger the availability of form & input blocks.
63 - *
64 - * @deprecated 19.0.0 Use gutenberg_enable_block_experiments().
65 - */
66 -function gutenberg_enable_form_input_blocks() {
67 - _deprecated_function( __FUNCTION__, 'Gutenberg 19.0.0', 'gutenberg_enable_block_experiments' );
68 -}
69 -
70 -/**
71 53 * Sets global JS variables used to enable various block experiments.
72 54 */
73 55 function gutenberg_enable_block_experiments() {
74 - // Experimental form blocks.
75 - if ( gutenberg_is_experiment_enabled( 'gutenberg-form-blocks' ) ) {
76 - wp_add_inline_script( 'wp-block-editor', 'window.__experimentalEnableFormBlocks = true', 'before' );
77 - }
78 -
79 56 // General experimental blocks that are not in the default block library.
80 57 if ( gutenberg_is_experiment_enabled( 'gutenberg-block-experiments' ) ) {
81 58 wp_add_inline_script( 'wp-block-editor', 'window.__experimentalEnableBlockExperiments = true', 'before' );
82 59 }