REST API: Correct variable type in `WP_Rest_Server::serve_batch_request_v1()`.
`wp_parse_str()` expects an array as the second parameter. Follow-up to [49252]. Props antonvlasenko. See #61593. Built from https://develop.svn.wordpress.org/trunk@58688 git-svn-id: http://core.svn.wordpress.org/trunk@58090 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
54b2903296
commit
1d9524c836
|
@ -1667,7 +1667,7 @@ class WP_REST_Server {
|
|||
$single_request = new WP_REST_Request( isset( $args['method'] ) ? $args['method'] : 'POST', $parsed_url['path'] );
|
||||
|
||||
if ( ! empty( $parsed_url['query'] ) ) {
|
||||
$query_args = null; // Satisfy linter.
|
||||
$query_args = array();
|
||||
wp_parse_str( $parsed_url['query'], $query_args );
|
||||
$single_request->set_query_params( $query_args );
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.7-alpha-58687';
|
||||
$wp_version = '6.7-alpha-58688';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue