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

Widget preivew not working if widget registered via a instance #32781

Merged
merged 6 commits into from Jun 22, 2021

Conversation

@spacedmonkey
Copy link
Member

@spacedmonkey spacedmonkey commented Jun 17, 2021

Description

Details on this ticket can be found here - https://core.trac.wordpress.org/ticket/53427

This ticket introduces a new filter called wp_get_legacy_widget_key which means that we do not have hardcode references to gutenberg_get_widget_object into core.

How has this been tested?

Screenshots

Types of changes

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • I've tested my changes with keyboard and screen readers.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.
  • I've updated all React Native files affected by any refactorings/renamings in this PR (please manually search all *.native.js files for terms that need renaming or removal).
Copy link
Member

@noisysocks noisysocks left a comment

Tested that previewing a Legacy Widget works when running plugin against trunk and 5.7. LGTM 👍

packages/widgets/src/blocks/legacy-widget/index.php Outdated Show resolved Hide resolved
@spacedmonkey spacedmonkey requested a review from noisysocks Jun 21, 2021
@adamziel
Copy link
Contributor

@adamziel adamziel commented Jun 21, 2021

The failure looks unrelated, I just restarted the job.

@noisysocks noisysocks merged commit ef339e3 into WordPress:trunk Jun 22, 2021
17 checks passed
17 checks passed
@github-actions[bot]
Bump version
Details
@github-actions[bot]
Checks (12)
Details
@github-actions[bot]
Admin - 1 Admin - 1
Details
@github-actions[bot]
Run performance tests
Details
@github-actions[bot]
test (gutenberg-editor-initial-html, 14)
Details
@github-actions[bot]
test (12.2, gutenberg-editor-initial-html, 14)
Details
@github-actions[bot]
JavaScript (12)
Details
@github-actions[bot]
Checks (14)
Details
@github-actions[bot]
Admin - 2 Admin - 2
Details
@github-actions[bot]
JavaScript (14)
Details
@github-actions[bot]
Admin - 3 Admin - 3
Details
@github-actions[bot]
Admin - 4 Admin - 4
Details
@github-actions[bot]
Build Release Artifact
Details
@github-actions[bot]
Create Release Draft and Attach Asset
Details
@github-actions[bot]
Mobile
Details
@github-actions github-actions bot added this to the Gutenberg 11.0 milestone Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants