-
Notifications
You must be signed in to change notification settings - Fork 801
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
Facebook Widget: Fix URL error when adding widget #20864
Conversation
* Add the keys from the $new_instance array to the top level of the array returned by the update method. This allows the widget to be updated from wp-admin/widgets.php. * In the widget method, set the $like_args value to the default values, and only set the variable to the instance values if they exist. This prevents a PHP notice from being generated when the like_args key doesn't exist.
Caution: This PR has changes that must be merged to WordPress.com |
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
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 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
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 works for me! Widget could use some love for sure, but this fixes the issue.
Also, your testing instructions are the best 👍
Great news! One last step: head over to your WordPress.com diff, D66044-code, and commit it. Thank you! |
* master: (34 commits) Fix issue templates (#20880) Social Icon Widget: Fix Icons Not Saving (#20862) Dashboard: Add a specific message for a site that is too new to have a rewind status (#20863) Add additional properties to WC Analytics events (#20812) Connection: add spinner for the "Connect" button (#20872) Update storybook monorepo to v6.3.7 (#20877) Lightweight PHPCS (#20876) Recommendations: Add Jetpack Product Suggestions step (#20814) Update babel monorepo (#20875) Update wordpress monorepo (#20873) cli: Check subprocess exit statuses in docker commands (#20861) Facebook Widget: Fix URL error when adding widget (#20864) Stats: make nudges collapsible (#20765) Remove temporary Newspack block override css (#20868) Allow ZIP uploads via Calypso (#20860) Sync Package Release v1.26.0 (#20870) Connection: remove in-place in secondary flows (#20739) BUILD_DIR -> BUILD_BASE in initial checks (#20857) E2E tests: Fix missing action for atomic workflow (#20866) Boost: Fix skip proxy origins to load css during critical CSS generation (#20793) ...
Deployed to wpcom in r231011-wpcom. |
Fixes #20836
Changes proposed in this Pull Request:
by the update method. This allows the widget to be updated from wp-admin/widgets.php.
variable to the instance values if they exist. This prevents a PHP notice from being
generated when the like_args key doesn't exist.
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
These changes need to be tested in the following situations:
Set up the test site
Make extra widgets available for use on your site...
setting.Test with the widget block editor
Test with the classic widget editor