-
Notifications
You must be signed in to change notification settings - Fork 851
Sync: Fix issue with syncing raw URLs for multisites #8006
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
484fa2e to
9fcd051
Compare
|
Can we add a test here? |
|
Also Can you explain what the process will be in fixing sites that are broken? |
|
Existing test is now updated.
The sites should update automatically after plugin upgrade, once callables sync. If that fails, the user can initiate a full sync or cycle the connection. |
03eb568 to
d90d1f2
Compare
lezama
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.
![]()
oskosk
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.
![]()
Fixes #7997
In #7997, @enejb reported an issue where his multisite was syncing an incorrect URL, the base URL for the site. This was caused by #5852 when we/I started syncing the raw URLs.
While I did test multisites, I apparently didn't test multisites with the constant set. Or, I would've noticed the wrong URL was being synced.
I was able to narrow this down to these lines in core WordPress:
The
_config_wp_siteurland_config_wp_homefilters check if theWP_HOMEorWP_SITEURLconstants are set, and if so, uses those constants. BUT ... the filters that call those functions are removed for multisites.In #5852, I was always returning the constant value, which is the incorrect behavior.
To test: