From 86c441140bceb73a7e8db16641f91a1e13bbe148 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 29 Nov 2019 22:01:03 +0000 Subject: [PATCH] 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 --- wp-includes/rest-api/class-wp-rest-request.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/rest-api/class-wp-rest-request.php b/wp-includes/rest-api/class-wp-rest-request.php index a8932ebb51..523bad00db 100644 --- a/wp-includes/rest-api/class-wp-rest-request.php +++ b/wp-includes/rest-api/class-wp-rest-request.php @@ -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'; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 714d1d5318..6283ab4dad 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.