-
Notifications
You must be signed in to change notification settings - Fork 798
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
Fix logic for choosing between customizer and widgets.php #13858
Fix logic for choosing between customizer and widgets.php #13858
Conversation
Caution: This PR has changes that must be merged to WordPress.com |
Thank you for the great PR description! When this PR is ready for review, please apply the Scheduled Jetpack release: December 3, 2019. |
Noting that this was originally added to fix an issue on WordPress.com. See 6714-wpcom for more details. That said, applying your patch on WordPress.com does not seem to break things. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you bump the version of that file as it is enqueued here?
20171227, |
That will help ensure that everyone gets the updated version of the file loading on their site after the update.
Thank you!
This commit changes the logic for determining whether we are in the customizer or widgets.php. Previously, when accessing widgets from widgets.php, the logic failed to recognize this when the page initialized with no widgets. This change removes the additional check for .widget-control-actions when initializing the widgets_shell variable. Instead we make sure the variable is not undefined, and if it is not undefined, we make sure it is not empty. This ensures the correct element is selected, even when there are no initial active plugins. See #12302 for details.
Bumps version number in widget_admin_setup function to ensure everyone gets updated file after plugin update. See #13858 (review)
chickenn00dle, Your synced wpcom patch D34621-code has been updated. |
Apologies for the delay on this @jeherve! I've bumped the version number :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tests well. Merging.
* Changelog: 8.1 additions * Changelog: add #13858 * Changelog: add #13963 * Changelog: add #14174 * Changelog: add #14178 * Changelog: add #14175 * Changelog: add #14192 * Changelog: add #14196 * Changelog: add #14182 * Changelog: add #14218 * Changelog: add #14214 * Changelog: add #13757 * Changelog: add #14190 * Changelog: add #14131 * Changelog: add #14101 * Changelog: add #14203 * Changelog: add #14211 * Changelog: add #14224 * Changelog: add #14230 * Changelog: add #14241 * Changelog: add #14249 * Changelog: add #14264 * Changelog: add #14263 * Changelog: add #14256 * Changelog: add #10189 * Changelog: add #14240 * Changelog: add #14239 Also added some new entries to the testing file. Co-authored-by: Igor Zinovyev <zinigor@gmail.com>
* Changelog: 8.1 additions * Changelog: add #13858 * Changelog: add #13963 * Changelog: add #14174 * Changelog: add #14178 * Changelog: add #14175 * Changelog: add #14192 * Changelog: add #14196 * Changelog: add #14182 * Changelog: add #14218 * Changelog: add #14214 * Changelog: add #13757 * Changelog: add #14190 * Changelog: add #14131 * Changelog: add #14101 * Changelog: add #14203 * Changelog: add #14211 * Changelog: add #14224 * Changelog: add #14230 * Changelog: add #14241 * Changelog: add #14249 * Changelog: add #14264 * Changelog: add #14263 * Changelog: add #14256 * Changelog: add #10189 * Changelog: add #14240 * Changelog: add #14239 Also added some new entries to the testing file. Co-authored-by: Igor Zinovyev <zinigor@gmail.com>
This commit changes the logic for determining whether we are in the
customizer or widgets.php. Previously, when accessing widgets from
widgets.php, the logic failed to recognize this when the page
initialized with no widgets.
This ensures the correct element is selected, even when there are no
active plugins when the page loads.
Fixes #12302
Changes proposed in this Pull Request:
Testing instructions:
From #12302 (comment)
Proposed changelog entry for your changes: