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
This commit is contained in:
whyisjake 2019-11-05 17:38:03 +00:00
parent 2e22c8292d
commit 5b4fe55ee8
2 changed files with 2 additions and 2 deletions

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;
}

View File

@ -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.