Skip to content

Widgets: Retrieve latest widgets before loading sidebars#32997

Merged
talldan merged 1 commit intoWordPress:trunkfrom
walbo:retrieve-widgets
Jul 13, 2021
Merged

Widgets: Retrieve latest widgets before loading sidebars#32997
talldan merged 1 commit intoWordPress:trunkfrom
walbo:retrieve-widgets

Conversation

@walbo
Copy link
Copy Markdown
Member

@walbo walbo commented Jun 25, 2021

Description

Backport https://core.trac.wordpress.org/ticket/53489 that was fixed in core.

This fixes issues where sidebars would be unexpectedly missing from the new widgets screen. Running retrieve_widgets syncs sidebars that were registered after the last theme switch.

How has this been tested?

See testing in core ticket.

Types of changes

Bug fix

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).

This fixes issues where sidebars would be unexpectedly missing from the new widgets screen. Running retrieve_widgets syncs sidebars that were registered after the last theme switch.
@github-actions
Copy link
Copy Markdown

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @walbo! In case you missed it, we'd love to have you join us in our Slack community, where we hold regularly weekly meetings open to anyone to coordinate with each other.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

@github-actions github-actions Bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Jun 25, 2021
@Mamaduka Mamaduka added [Feature] Widgets Screen The block-based screen that replaced widgets.php. [Package] Edit Widgets /packages/edit-widgets and removed First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository labels Jul 12, 2021
Copy link
Copy Markdown
Contributor

@talldan talldan left a comment

Choose a reason for hiding this comment

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

Thanks!

@talldan talldan merged commit e2b5503 into WordPress:trunk Jul 13, 2021
@github-actions github-actions Bot added this to the Gutenberg 11.1 milestone Jul 13, 2021
@walbo walbo deleted the retrieve-widgets branch July 13, 2021 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Widgets Screen The block-based screen that replaced widgets.php. [Package] Edit Widgets /packages/edit-widgets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants