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/trunk@46654 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jake Spurlock 2019-11-05 17:36:31 +00:00
parent f6cb28a6a2
commit 969285d54b

View File

@ -310,7 +310,7 @@ class WP_REST_Request implements ArrayAccess {
}
$value = strtolower( $value );
if ( strpos( $value, '/' ) === false ) {
if ( false === strpos( $value, '/' ) ) {
return null;
}