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
Conflict between field name and parameter name in wp site list prevents filtering by url #1939
Comments
It is a valid bug. Also for |
One possible solution is to consider
|
Escuse me. After looking at the code: I am sending a PR to clear up all these. |
That's just an implementation detail. No reason the command couldn't work around it. |
I suggest to have |
Having two different --url parameters seems confusing. I'd prefer using a different name. |
Please take a look at #1940. |
This is my preference, but it will be a breaking change. Related #1222
I'm not keen the rename the fields, as it doesn't solve the larger problem. |
Then maybe rename the global |
Per my initial comment, this is the route we'll eventually take:
However, it would be a relatively substantial breaking change, so won't happen until v1.0.0 (if / when that comes). |
Any recommendations on a way to look up a certain site's id? wp db query? |
|
Would it be possible, rather than requiring positional arguments to change the filter parameters to be prefixed by |
While we still have this issue with global vs. local arguments, this particular issue is actually a documentation bug, as You can filter |
I ran into a problem trying to filter the wp site list by the url field. It looks like it's the same name as the --url parameter. http://wp-cli.org/commands/site/list/
Renaming the field to something other than 'url' could solve the problem.
Works: wp site list --blog_id=223
Bug: wp site list --url=example.com/mysite1/
Outputs all sites in the network because it's pretending that the request came from the given URL, not matching the url field.
The text was updated successfully, but these errors were encountered: