You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using commands such as wp option update siteurl on a multisite, passing a --url parameter of a non-existent domain or subdomain will return an error. But passing a --url parameter of a non-existent subdirectory will not return an error and will instead apply the command to subsite 1. This means that a typo in a command targeting subsite 2 will inadvertently change subsite 1, which can cause a site to break.
Describe how other contributors can replicate this bug
Here is an example log where the subdirectory is info but I omit the o.
Bug Report
When using commands such as
wp option update siteurl
on a multisite, passing a--url
parameter of a non-existent domain or subdomain will return an error. But passing a--url
parameter of a non-existent subdirectory will not return an error and will instead apply the command to subsite 1. This means that a typo in a command targeting subsite 2 will inadvertently change subsite 1, which can cause a site to break.Describe how other contributors can replicate this bug
Here is an example log where the subdirectory is
info
but I omit theo
.Desired behavior
The command
would return
Environment
I have replicated this experience in two environments:
MAMP
And WPVIP:
The text was updated successfully, but these errors were encountered: