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:
parent
2e22c8292d
commit
5b4fe55ee8
@ -310,7 +310,7 @@ class WP_REST_Request implements ArrayAccess {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$value = strtolower( $value );
|
$value = strtolower( $value );
|
||||||
if ( strpos( $value, '/' ) === false ) {
|
if ( false === strpos( $value, '/' ) ) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user