-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
update_network_option()
strict checks can cause false negatives
#5434
Conversation
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.
Looks good to me! 👍
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.
Left a few suggestions, nothing blocking. Looks good to me, pending any adjustments you want to make.
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.
@mukeshpanchal27 While this PR looks mostly good to me, I have some concerns about it, most importantly two points one of which @joemcgill raised as well.
I think we'll need clarity on that and potentially make changes before committing. I personally am not convinced this is safe to commit at this point, so late in the beta cycle.
Co-authored-by: Colin Stewart <[email protected]>
@mukeshpanchal27 @spacedmonkey @costdev @joemcgill I think we need to take a step back here. Based on some of the feedback above, this change is not ready for commit, as there are outstanding problems to address. Some thoughts:
At a higher level, the questions here are:
I think we should talk about those points first before continuing to make changes to the code preliminarily. |
@felixarntz I disagree a little here. The beavhour between update_option and update_network_optoin should be the same. What ever one function has, the other should have. I don't see why that is complex. |
Definitely, I agree. I think if we we hold off committing this because we want to rethink the approach, it is because the change here is more complex than we thought, and in that case we would need to revert the changes from 22192 as well. See related Slack discussion: I think if we add the |
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.
@mukeshpanchal27 @costdev This looks almost good to go. I think one more concern to address regarding potentially incorrect defaults on non-multisite.
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.
Thanks for all the updates @mukeshpanchal27 @costdev! LGTM 🎉
Only one test remains skipped as it is unique to single site.
`$message` parameters, SEASON 2 FINALE! SEASON 3 COMING SOON!
Thank you for all the valuable feedback and insights, @joemcgill and @felixarntz. A special thanks to @costdev for pushing the changes while I was asleep. It's wonderful to see that when I began working, everything was ready for commit. 🦸♂️ 🚀 |
Trac ticket: https://core.trac.wordpress.org/ticket/59360
This PR update the production code of
update_network_option()
and the unit tests. The unit tests update shows that after the code change it will reduce some queries for multisite.This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.