Commit 4bbdf78
committed
REST API: Guard against passing
The variable may get set to `null` by a filter or subclass.
Developed in WordPress/wordpress-develop#7625
Follow-up to r38832.
Props apermo, dmsnell, westonruter.
Fixes #62287.
Built from https://develop.svn.wordpress.org/trunk@61773
git-svn-id: http://core.svn.wordpress.org/trunk@61079 1a063a9b-81f0-0310-95a4-ce76da25c4cdnull as $prepared_args to WP_REST_Posts_Controller::prepare_items_query().1 parent f178cca commit 4bbdf78
3 files changed
Lines changed: 15 additions & 3 deletions
File tree
- wp-includes
- rest-api/endpoints
Lines 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 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments