Repository navigation
Commit ef5bf2a
committed
Use WP_Date_Query for exact registration and update dates
Filter --registered and --last_updated through WP_Site_Query's date_query
rather than matching them while iterating, so the whole argument set is
resolved in one query.
The SQL that WP_Date_Query emits for an exact timestamp is not translated by
the SQLite integration, so the scenario covering those two is tagged
@skip-sqlite until that is fixed upstream. @skip-sqlite rather than
@require-mysql, since the behaviour is fine on MariaDB too and
@require-mysql would exclude it there.
Parsing and formatting both as UTC round-trips the given value unchanged
instead of shifting it by the server's timezone.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014SSZzqMJRDTiLiDxQEPYcL1 parent e810bc2 commit ef5bf2a
2 files changed
Lines changed: 42 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1042 | 1042 | | |
1043 | 1043 | | |
1044 | 1044 | | |
1045 | | - | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
1046 | 1057 | | |
1047 | 1058 | | |
1048 | 1059 | | |
| |||
1068 | 1079 | | |
1069 | 1080 | | |
1070 | 1081 | | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1099 | 1099 | | |
1100 | 1100 | | |
1101 | 1101 | | |
1102 | | - | |
1103 | | - | |
1104 | | - | |
1105 | | - | |
1106 | | - | |
1107 | | - | |
1108 | | - | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
1109 | 1106 | | |
1110 | | - | |
1111 | | - | |
| 1107 | + | |
| 1108 | + | |
1112 | 1109 | | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
1113 | 1126 | | |
1114 | 1127 | | |
1115 | 1128 | | |
| |||
1145 | 1158 | | |
1146 | 1159 | | |
1147 | 1160 | | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
1165 | 1161 | | |
1166 | | - | |
| 1162 | + | |
1167 | 1163 | | |
1168 | 1164 | | |
1169 | 1165 | | |
| |||
0 commit comments