Make WordPress Core

Changeset 46803


Ignore:
Timestamp:
11/29/2019 09:58:37 PM (5 years ago)
Author:
SergeyBiryukov
Message:

REST API: Use a strict in_array() check in WP_REST_Request::get_parameter_order().

See #48839.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/class-wp-rest-request.php

    r46660 r46803  
    351351
    352352        $accepts_body_data = array( 'POST', 'PUT', 'PATCH', 'DELETE' );
    353         if ( in_array( $this->method, $accepts_body_data ) ) {
     353        if ( in_array( $this->method, $accepts_body_data, true ) ) {
    354354            $order[] = 'POST';
    355355        }
Note: See TracChangeset for help on using the changeset viewer.