Commit 880bb48
committed
REST API: Correct error handling in
This aims to avoid a fatal error when hitting the batch request endpoint with a malformed URL.
Follow-up to [49252].
Props bor0, SirLouen, SergeyBiryukov.
Fixes #63502.
git-svn-id: https://develop.svn.wordpress.org/trunk@60635 602fd350-edb4-49c9-b593-d223f7449a82WP_REST_Server::serve_batch_request_v1().1 parent 9098796 commit 880bb48
File tree
2 files changed
+36
-0
lines changed- src/wp-includes/rest-api
- tests/phpunit/tests/rest-api
2 files changed
+36
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1747 | 1747 | | |
1748 | 1748 | | |
1749 | 1749 | | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
1750 | 1756 | | |
1751 | 1757 | | |
1752 | 1758 | | |
| |||
1817 | 1823 | | |
1818 | 1824 | | |
1819 | 1825 | | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
1820 | 1832 | | |
1821 | 1833 | | |
1822 | 1834 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2329 | 2329 | | |
2330 | 2330 | | |
2331 | 2331 | | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
2332 | 2356 | | |
2333 | 2357 | | |
2334 | 2358 | | |
| |||
0 commit comments