From 1b02d9d26355c18565844e8d356193ea6b517cbe Mon Sep 17 00:00:00 2001 From: Glen Davies Date: Tue, 16 Nov 2021 21:45:07 +1300 Subject: [PATCH 1/2] Disable the v2 Gallery block for the 5.9 release --- lib/experiments-page.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/experiments-page.php b/lib/experiments-page.php index bd4ca968073f8..3aa3119837c0b 100644 --- a/lib/experiments-page.php +++ b/lib/experiments-page.php @@ -97,11 +97,11 @@ function gutenberg_display_experiment_section() { * @return array Filtered editor settings. */ function gutenberg_experiments_editor_settings( $settings ) { - // The refactored gallery currently can't be run on sites with use_balanceTags option set. - // This bypass needs to remain in place until this is resolved and a patch released. - // https://core.trac.wordpress.org/ticket/54130. + // The refactored gallery is disabled by default on WordPress 5.9. + // To run the refactored Gallery with nested Image blocks install the + // Gutenberg plugin >= 11.9. $experiments_settings = array( - '__unstableGalleryWithImageBlocks' => (int) get_option( 'use_balanceTags' ) !== 1, + '__unstableGalleryWithImageBlocks' => false, ); return array_merge( $settings, $experiments_settings ); } From b941b72ba609b9bed09c17e048aff910a11bb6b7 Mon Sep 17 00:00:00 2001 From: Glen Davies Date: Tue, 16 Nov 2021 22:47:18 +1300 Subject: [PATCH 2/2] Remove whitespace --- lib/experiments-page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/experiments-page.php b/lib/experiments-page.php index 3aa3119837c0b..d4262c8f2b973 100644 --- a/lib/experiments-page.php +++ b/lib/experiments-page.php @@ -98,7 +98,7 @@ function gutenberg_display_experiment_section() { */ function gutenberg_experiments_editor_settings( $settings ) { // The refactored gallery is disabled by default on WordPress 5.9. - // To run the refactored Gallery with nested Image blocks install the + // To run the refactored Gallery with nested Image blocks install the // Gutenberg plugin >= 11.9. $experiments_settings = array( '__unstableGalleryWithImageBlocks' => false,