Skip to content

Fix: Prevent Tiled Gallery crash and add changelog entry (#49606)#50025

Open
Tejas-Raj01 wants to merge 2 commits into
Automattic:trunkfrom
Tejas-Raj01:fix/tiled-gallery-crash
Open

Fix: Prevent Tiled Gallery crash and add changelog entry (#49606)#50025
Tejas-Raj01 wants to merge 2 commits into
Automattic:trunkfrom
Tejas-Raj01:fix/tiled-gallery-crash

Conversation

@Tejas-Raj01

Copy link
Copy Markdown

Fixes #49606

Proposed changes

  • Fixes an editor crash that occurs when transforming a Gallery block back to a Tiled Gallery. The fix ensures the images attribute is recovered from innerBlocks when the top-level images attribute is empty or undefined.

Related product discussion/links

Does this pull request change what data or activity we track or use?

  • No, this PR does not change any data tracking or activity collection.

Testing instructions

  • Go to any Post or Page in the Block Editor.
  • Add a standard "Gallery" block and upload/select multiple images.
  • Transform this "Gallery" block into a "Tiled Gallery" block using the block toolbar transformation option.
  • Before this fix: The editor would trigger a crash/error due to missing images in the block attributes.
  • After this fix: The Tiled Gallery block should render successfully by recovering the image data from the block's innerBlocks.

@github-actions github-actions Bot added [Block] Tiled Gallery [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ labels Jun 27, 2026
@github-actions

github-actions Bot commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖



Jetpack plugin:

The Jetpack plugin has different release cadences depending on the platform:

  • WordPress.com Simple releases happen as soon as you deploy your changes after merging this PR (PCYsg-Jjm-p2).
  • WoA releases happen weekly.
  • Releases to self-hosted sites happen monthly:
    • Scheduled release: July 7, 2026
    • Code freeze: July 6, 2026

If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Tiled Gallery OSS Citizen This Pull Request was opened by an Open Source contributor. [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/

Projects

None yet

1 participant