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/branches/5.3@46639


git-svn-id: http://core.svn.wordpress.org/branches/5.3@46439 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
whyisjake 2019-11-03 18:34:04 +00:00
parent efacf16e12
commit 7a8e558ac4
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.3-RC3-46619';
$wp_version = '5.3-RC3-46639';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.