Make WordPress Core


Ignore:
Timestamp:
07/17/2026 04:36:42 PM (3 months ago)
Author:
desrosj
Message:

Grouped backports to the 6.9 branch.

  • REST API: sub-requests must always use dispatch.
  • REST API: Ensure errors in batch requests propogate.
  • Query: Force authornot_in values to be integers.

Merges [62769], [62770], [62771] to the 6.9 branch.

Props peterwilsoncc, westonruter, xknown, joehoyle, sergeybiryukov, jorbin, johnbillion, desrosj, clorith, ehtis.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/6.9/src/wp-includes/rest-api/class-wp-rest-server.php

    r61141 r62775  
    284284         */
    285285        public function serve_request( $path = null ) {
     286                // Refuse to start a fresh top-level REST cycle while another dispatch
     287                // is already in flight. Internal sub-requests must use dispatch().
     288                if ( $this->is_dispatching() ) {
     289                        return false;
     290                }
     291
    286292                /* @var WP_User|null $current_user */
    287293                global $current_user;
    … …  
    17501756                        if ( is_wp_error( $single_request ) ) {
    17511757                                $has_error    = true;
     1758                                $matches[]    = $single_request;
    17521759                                $validation[] = $single_request;
    17531760                                continue;
Note: See TracChangeset for help on using the changeset viewer.