REST API: Use a strict `in_array()` check in `WP_REST_Request::get_parameter_order()`.
See #48839. git-svn-id: https://develop.svn.wordpress.org/trunk@46803 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d50f672908
commit
e3261b601f
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue