Skip to content

Commit b59965b

Browse files
committed
Fold the date filter notes into their own option entries
#638 documented --registered and --last_updated as options in their own right, which left them described twice after the merge: once here and once in the --<field>=<value> blurb. Keep the dedicated entries and drop the duplicate. The <yyyy-mm-dd-hh-ii-ss> placeholder those entries inherited also implied a full timestamp was required, which stopped being true once the filters became a date query, so they take <date> now. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014SSZzqMJRDTiLiDxQEPYcL
1 parent 0458e4d commit b59965b

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎README.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5342,7 +5342,7 @@ These fields are optionally available:
53425342
Lists all sites in a multisite installation.
53435343

53445344
~~~
5345-
wp site list [--network=<id>] [--<field>=<value>] [--site__in=<value>] [--site_user=<value>] [--site-path=<path>] [--blog_id=<blog_id>] [--site_id=<site_id>] [--domain=<domain>] [--registered=<yyyy-mm-dd-hh-ii-ss>] [--last_updated=<yyyy-mm-dd-hh-ii-ss>] [--public=<public>] [--archived=<archived>] [--mature=<mature>] [--spam=<spam>] [--deleted=<deleted>] [--lang_id=<lang_id>] [--field=<field>] [--fields=<fields>] [--format=<format>]
5345+
wp site list [--network=<id>] [--<field>=<value>] [--site__in=<value>] [--site_user=<value>] [--site-path=<path>] [--blog_id=<blog_id>] [--site_id=<site_id>] [--domain=<domain>] [--registered=<date>] [--last_updated=<date>] [--public=<public>] [--archived=<archived>] [--mature=<mature>] [--spam=<spam>] [--deleted=<deleted>] [--lang_id=<lang_id>] [--field=<field>] [--fields=<fields>] [--format=<format>]
53465346
~~~
53475347

53485348
**OPTIONS**
@@ -5355,8 +5355,6 @@ wp site list [--network=<id>] [--<field>=<value>] [--site__in=<value>] [--site_u
53555355
other argument accepted by WP_Site_Query, such as 'search', 'site__not_in',
53565356
'number', 'offset', 'orderby' or 'order'. However, 'url' isn't an available
53575357
filter, as it comes from 'home' in wp_options.
5358-
'--registered' and '--last_updated' take a timestamp or a date; a value
5359-
carrying no time of day matches that whole day.
53605358
Note: '--path' conflicts with the global parameter of the same name; use
53615359
'--site-path' to filter by path instead.
53625360

@@ -5379,11 +5377,13 @@ wp site list [--network=<id>] [--<field>=<value>] [--site__in=<value>] [--site_u
53795377
[--domain=<domain>]
53805378
Filter by domain.
53815379

5382-
[--registered=<yyyy-mm-dd-hh-ii-ss>]
5383-
Filter by the date the site was registered.
5380+
[--registered=<date>]
5381+
Filter by the date the site was registered. Accepts a timestamp or a
5382+
date; a value carrying no time of day matches that whole day.
53845383

5385-
[--last_updated=<yyyy-mm-dd-hh-ii-ss>]
5386-
Filter by the date the site was last updated.
5384+
[--last_updated=<date>]
5385+
Filter by the date the site was last updated. Accepts a timestamp or a
5386+
date; a value carrying no time of day matches that whole day.
53875387

53885388
[--public=<public>]
53895389
Filter by whether the site is public. Accepts 1 or 0.

‎src/Site_Command.php‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -990,8 +990,6 @@ private function get_network( $network_id ) {
990990
* other argument accepted by WP_Site_Query, such as 'search', 'site__not_in',
991991
* 'number', 'offset', 'orderby' or 'order'. However, 'url' isn't an available
992992
* filter, as it comes from 'home' in wp_options.
993-
* '--registered' and '--last_updated' take a timestamp or a date; a value
994-
* carrying no time of day matches that whole day.
995993
* Note: '--path' conflicts with the global parameter of the same name; use
996994
* '--site-path' to filter by path instead.
997995
*
@@ -1014,11 +1012,13 @@ private function get_network( $network_id ) {
10141012
* [--domain=<domain>]
10151013
* : Filter by domain.
10161014
*
1017-
* [--registered=<yyyy-mm-dd-hh-ii-ss>]
1018-
* : Filter by the date the site was registered.
1015+
* [--registered=<date>]
1016+
* : Filter by the date the site was registered. Accepts a timestamp or a
1017+
* date; a value carrying no time of day matches that whole day.
10191018
*
1020-
* [--last_updated=<yyyy-mm-dd-hh-ii-ss>]
1021-
* : Filter by the date the site was last updated.
1019+
* [--last_updated=<date>]
1020+
* : Filter by the date the site was last updated. Accepts a timestamp or a
1021+
* date; a value carrying no time of day matches that whole day.
10221022
*
10231023
* [--public=<public>]
10241024
* : Filter by whether the site is public. Accepts 1 or 0.

0 commit comments

Comments
 (0)