Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#55512 closed defect (bug) (reported-upstream)

Gallery gap adjustment in Gutenberg 12.9.0 does not work

Reported by: burnuser's profile burnuser Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.9.2
Component: Gallery Keywords:
Focuses: Cc:

Description

I tried the new gallery gap support in Gutenberg 12.9.0 on Twenty Twenty-Two (and other FSE Themes) in several test environments, including a completely new one on https://wpsandbox.net/

The result is every time the same:
Inserting a gallery (e.g. 6 images in 3 columns) works as regular.
But any entered value in "block spacing" converts the gallery in a single column (with gaps acording to the entered value)

Change History (4)

#1 @glendaviesnz
2 years ago

Thanks for reporting @burnuser.

I wasn't able to replicate this in a 5.9.2 install with the latest Gutenberg on TwentyTwentyTwo:

https://media0.giphy.com/media/4iQSCg0sRfO3iPpRhu/giphy.gif

Are you able to provide a link to frontend page where the gallery is doing this?

#2 @burnuser
2 years ago

I get the same result on 3 different test-environments:

1.) local environment from Laragon
... with error-message

2.) TasteWP Sandbox (exists 24h): https://panoramicexchange.s2-tastewp.com/
... with same error-message:
Warning: preg_match() expects parameter 2 to be string, array given in /s2-panoramicexchange/wordpress/wp-content/plugins/gutenberg/build/block-library/blocks/gallery.php on line 51

3.) InstaWP Sandbox (exists 8h): https://jepocu.us4.instawp.xyz/
... without error-message

#3 @glendaviesnz
2 years ago

  • Keywords close added
  • Resolution set to invalid
  • Status changed from new to closed

Thanks for the extra detail @burnuser This issue was fixed here https://github.com/WordPress/gutenberg/pull/39788 and this fix will be included in release 13.0

#4 @desrosj
2 years ago

  • Keywords close removed
  • Milestone Awaiting Review deleted
  • Resolution changed from invalid to reported-upstream
Note: See TracTickets for help on using tickets.