Skip to content

Commit 1000ed1

Browse files
committed
REST API: Ensure errors in batch requests propogate.
Props xknown, sergeybiryukov, joehoyle, jorbin, clorith, johnbillion, desrosj. git-svn-id: https://develop.svn.wordpress.org/trunk@62770 602fd350-edb4-49c9-b593-d223f7449a82
1 parent fa72c12 commit 1000ed1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/wp-includes/rest-api/class-wp-rest-server.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,6 +1762,7 @@ public function serve_batch_request_v1( WP_REST_Request $batch_request ) {
17621762
foreach ( $requests as $single_request ) {
17631763
if ( is_wp_error( $single_request ) ) {
17641764
$has_error = true;
1765+
$matches[] = $single_request;
17651766
$validation[] = $single_request;
17661767
continue;
17671768
}

0 commit comments

Comments
 (0)