From 969950c22c02618433accc33dc70e5e8e83d3587 Mon Sep 17 00:00:00 2001 From: Jake Spurlock Date: Sun, 3 Nov 2019 18:32:37 +0000 Subject: [PATCH] REST API: Fix for Yoda condition. Little coding standards fix for the REST API. Props mukesh27, spenserhale. Fixes #48337. git-svn-id: https://develop.svn.wordpress.org/branches/5.3@46639 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/rest-api/class-wp-rest-request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/rest-api/class-wp-rest-request.php b/src/wp-includes/rest-api/class-wp-rest-request.php index 0910ff6f28..1661ce724e 100644 --- a/src/wp-includes/rest-api/class-wp-rest-request.php +++ b/src/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; }