Commit d025fb9
committed
Move the site meta filters behind @require-wp-5.1
Multisite gained the site meta table in WordPress 5.1, and WP_Site_Query
gained the meta_* parameters that read it in the same release, so
`wp site meta add` fails on 4.9 with "The table is not installed" and the
filters have nothing to match against. They get a scenario of their own,
tagged for the version that has them, and the docblock says so.
The rest stays where it is: 'lang_id', 'lang__in' and 'lang__not_in' date
from 4.8 and everything else here from 4.6, so only the meta arguments
needed separating.
Also covers '--last_updated' against an OR date query, not just
'--registered', so both filters are pinned against the relation leaking.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014SSZzqMJRDTiLiDxQEPYcL1 parent 25297bc commit d025fb9
3 files changed
Lines changed: 70 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5538 | 5538 | | |
5539 | 5539 | | |
5540 | 5540 | | |
5541 | | - | |
| 5541 | + | |
| 5542 | + | |
5542 | 5543 | | |
5543 | 5544 | | |
5544 | 5545 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1169 | 1169 | | |
1170 | 1170 | | |
1171 | 1171 | | |
1172 | | - | |
1173 | | - | |
1174 | | - | |
1175 | | - | |
1176 | | - | |
1177 | | - | |
1178 | | - | |
1179 | | - | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
1186 | | - | |
1187 | | - | |
1188 | | - | |
1189 | | - | |
1190 | | - | |
1191 | | - | |
1192 | | - | |
1193 | | - | |
1194 | | - | |
1195 | | - | |
1196 | | - | |
1197 | | - | |
1198 | | - | |
1199 | | - | |
1200 | | - | |
| 1172 | + | |
1201 | 1173 | | |
1202 | 1174 | | |
1203 | 1175 | | |
| |||
1236 | 1208 | | |
1237 | 1209 | | |
1238 | 1210 | | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
1239 | 1226 | | |
1240 | 1227 | | |
1241 | 1228 | | |
| |||
1250 | 1237 | | |
1251 | 1238 | | |
1252 | 1239 | | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
1253 | 1283 | | |
1254 | 1284 | | |
1255 | 1285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1072 | 1072 | | |
1073 | 1073 | | |
1074 | 1074 | | |
1075 | | - | |
| 1075 | + | |
| 1076 | + | |
1076 | 1077 | | |
1077 | 1078 | | |
1078 | 1079 | | |
| |||
1290 | 1291 | | |
1291 | 1292 | | |
1292 | 1293 | | |
1293 | | - | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
1294 | 1301 | | |
1295 | 1302 | | |
1296 | 1303 | | |
| |||
0 commit comments