-
Notifications
You must be signed in to change notification settings - Fork 845
Contact info widget: ensure the map response has results #12925
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
Conversation
…pting to get their geometry
|
While this PR solves this, the error is due to Google blocking the request. The complete error response is: Perhaps we should consider letting the user know what is going on? There's message in the widget saying that it's not working normally as it should. |
|
Thank you for the great PR description! When this PR is ready for review, please apply the Scheduled Jetpack release: August 6, 2019. |
#12474 should improve the user experience in that regard. |
jeherve
left a comment
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 looks good to me. I would hold on that PR though, and see if we can focus on #12474 instead, as it will also solve the issue by getting rid of that part of the code altogether.
This fixes #12913 by checking not only that the status is correct, but also if the response has results before attempting to use their geometric data.
May be superseeded by #12474
Changes proposed in this Pull Request:
Testing instructions:
/wp-admin/widgets.phpwp-content/debug.logProposed changelog entry for your changes: