Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve multi-network support in WP-CLI multisite commands #3687
This is written using
Retrieving a list of super admins for the non-primary network is possible with
It is slightly easier to generate a list of network IDs with something like
It looks like
All of that leads me to wonder whether it makes sense to:
One caveat to any of these approaches is that the nicer multi-network stuff in WordPress core has only been available in the last few releases. I guess that could be one argument toward making a package and declaring support for WP 4.6+.
There's a lot going on here :)
I don't think adding a
I do see an argument for making it easier to filter
What network features aren't covered in existing WP-CLI commands?
Ooph, reading back... that was a dump of a request. Thanks for parsing it. :)
I think this is probably the right idea.
WordPress doesn't really track the relationship between a network and its primary site. The best way to do it now is to compare the domain and path of each row from
Is that too hacky for something to build into WP-CLI?
Could you describe in greater detail what this logic should be? I'd like to get this flag either implemented or punted.