Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiled gallery block: remove gallery shortcode transform #30756

Merged
merged 1 commit into from
Feb 15, 2019

Conversation

simison
Copy link
Member

@simison simison commented Feb 13, 2019

Currently, all [gallery] shortcodes end up transforming to Tiled gallery, regardless if they were Tiled galleries originally and if they have required attributes (ids).

The same short-code could be for different plugins like “Flickr gallery” or for Jetpack slideshows.

It's less confusing to let all those shortcodes transform to core gallery, which can easily be converted back to Tiled Gallery Slideshow blocks.

Keeping the shortcode for all the different gallery shortcode implementations requires us to maintain the transform, vs just core gallery taking care of it.

Once we can limit the shortcode transform to [gallery layout="our-layouts-only" ids="these-must-exist"], it’s just a matter of copypasting it back.

Relevant core issues: WordPress/gutenberg#10674, WordPress/gutenberg#11551

Related to https://github.com/Automattic/wp-calypso/issues/30723
Not sure if relevant, but marking for visibility: #26140

Changes proposed in this Pull Request

  • Remove [gallery] shortcode transform.

Testing instructions

  • Copy paste [gallery] shortcode in the block editor
  • You should get core gallery instead of tiled gallery

@simison simison added [Goal] Gutenberg Working towards full integration with Gutenberg [Block] Tiled Gallery labels Feb 13, 2019
@matticbot
Copy link
Contributor

@scruffian scruffian requested a review from a team February 13, 2019 13:43
Copy link
Member

@scruffian scruffian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and LGMT

Copy link
Member

@sirreal sirreal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't test shortcodes, but confirmed that tiled galleries still works 🙂

@simison simison force-pushed the update/tiled-gallery-remove-shortcode-transform branch from 99c196c to fa2e986 Compare February 15, 2019 10:11
@simison simison merged commit 437f245 into master Feb 15, 2019
@simison simison deleted the update/tiled-gallery-remove-shortcode-transform branch February 15, 2019 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Tiled Gallery [Goal] Gutenberg Working towards full integration with Gutenberg [Pri] Normal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants