REST API: Use a strict `in_array()` check in `WP_REST_Request::get_parameter_order()`.
See #48839. Built from https://develop.svn.wordpress.org/trunk@46803 git-svn-id: http://core.svn.wordpress.org/trunk@46603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d33571f7d5
commit
86c441140b
|
@ -350,7 +350,7 @@ class WP_REST_Request implements ArrayAccess {
|
|||
}
|
||||
|
||||
$accepts_body_data = array( 'POST', 'PUT', 'PATCH', 'DELETE' );
|
||||
if ( in_array( $this->method, $accepts_body_data ) ) {
|
||||
if ( in_array( $this->method, $accepts_body_data, true ) ) {
|
||||
$order[] = 'POST';
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.4-alpha-46802';
|
||||
$wp_version = '5.4-alpha-46803';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue