From 5b4fe55ee81ca17451718832fbe01d57c790e9d4 Mon Sep 17 00:00:00 2001 From: whyisjake Date: Tue, 5 Nov 2019 17:38:03 +0000 Subject: [PATCH] REST API: Fix for Yoda condition. Little coding standards fix for the REST API. Props mukesh27, spenserhale. Fixes #48337. Built from https://develop.svn.wordpress.org/trunk@46654 git-svn-id: http://core.svn.wordpress.org/trunk@46454 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 0910ff6f28..1661ce724e 100644 --- a/wp-includes/rest-api/class-wp-rest-request.php +++ b/wp-includes/rest-api/class-wp-rest-request.php @@ -310,7 +310,7 @@ class WP_REST_Request implements ArrayAccess { } $value = strtolower( $value ); - if ( strpos( $value, '/' ) === false ) { + if ( false === strpos( $value, '/' ) ) { return null; } diff --git a/wp-includes/version.php b/wp-includes/version.php index a4726526ad..aac6f1ccbe 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-46652'; +$wp_version = '5.4-alpha-46654'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.