Skip to content

Commit a2ffb5e

Browse files
Copilotswissspidy
andcommitted
Restore path in site_cols for WP_CLI_STRICT_ARGS_MODE compatibility
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent 5cafad9 commit a2ffb5e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Site_Command.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -961,9 +961,9 @@ private function get_network( $network_id ) {
961961
*
962962
* [--<field>=<value>]
963963
* : Filter by one or more fields (see "Available Fields" section). However,
964-
* 'url' isn't an available filter, as it comes from 'home' in wp_options,
965-
* and 'path' isn't an available filter, as it conflicts with the global
966-
* `--path` parameter. Use `--site-path` to filter by path instead.
964+
* 'url' isn't an available filter, as it comes from 'home' in wp_options.
965+
* Note: '--path' conflicts with the global parameter of the same name; use
966+
* '--site-path' to filter by path instead.
967967
*
968968
* [--site__in=<value>]
969969
* : Only list the sites with these blog_id values (comma-separated).
@@ -1043,7 +1043,7 @@ public function list_( $args, $assoc_args ) {
10431043
$where = [];
10441044
$append = '';
10451045

1046-
$site_cols = [ 'blog_id', 'last_updated', 'registered', 'site_id', 'domain', 'public', 'archived', 'mature', 'spam', 'deleted', 'lang_id' ];
1046+
$site_cols = [ 'blog_id', 'last_updated', 'registered', 'site_id', 'domain', 'path', 'public', 'archived', 'mature', 'spam', 'deleted', 'lang_id' ];
10471047
foreach ( $site_cols as $col ) {
10481048
if ( isset( $assoc_args[ $col ] ) ) {
10491049
$where[ $col ] = $assoc_args[ $col ];

0 commit comments

Comments
 (0)