Commit 105c7aa
committed
REST API: Guard against passing
The variable may get set to `null` by a filter or subclass.
Developed in #7625
Follow-up to r38832.
Props apermo, dmsnell, westonruter.
Fixes #62287.
git-svn-id: https://develop.svn.wordpress.org/trunk@61773 602fd350-edb4-49c9-b593-d223f7449a82null as $prepared_args to WP_REST_Posts_Controller::prepare_items_query().1 parent d45dc6b commit 105c7aa
File tree
2 files changed
+14
-2
lines changed- src/wp-includes/rest-api/endpoints
2 files changed
+14
-2
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
444 | | - | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
445 | 448 | | |
446 | 449 | | |
447 | 450 | | |
| |||
1211 | 1214 | | |
1212 | 1215 | | |
1213 | 1216 | | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
1214 | 1220 | | |
1215 | 1221 | | |
1216 | 1222 | | |
| |||
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
302 | 305 | | |
303 | 306 | | |
304 | 307 | | |
| |||
549 | 552 | | |
550 | 553 | | |
551 | 554 | | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
552 | 558 | | |
553 | 559 | | |
554 | 560 | | |
| |||
0 commit comments