Make WordPress Core


Ignore:
Timestamp:
07/17/2026 04:36:42 PM (2 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.php

    r61178 r62775  
    439439        }
    440440
     441        // Short-circuit before define()/die() if a REST dispatch is already in flight.
     442        // serve_request() enforces this too; guarding here avoids the trailing die().
     443        if ( isset( $GLOBALS['wp_rest_server'] )
     444                && $GLOBALS['wp_rest_server'] instanceof WP_REST_Server
     445                && $GLOBALS['wp_rest_server']->is_dispatching()
     446        ) {
     447                return;
     448        }
     449
    441450        // Return an error message if query_var is not a string.
    442451        if ( ! is_string( $GLOBALS['wp']->query_vars['rest_route'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.