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
This commit is contained in:
parent
d331309b1a
commit
969950c22c
@ -310,7 +310,7 @@ class WP_REST_Request implements ArrayAccess {
|
||||
}
|
||||
|
||||
$value = strtolower( $value );
|
||||
if ( strpos( $value, '/' ) === false ) {
|
||||
if ( false === strpos( $value, '/' ) ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user