Skip to content

Commit

Permalink
REST API: Fix for Yoda condition.
Browse files Browse the repository at this point in the history
Little coding standards fix for the REST API.

Props mukesh27, spenserhale.

Fixes #48337.


git-svn-id: http://develop.svn.wordpress.org/trunk@46654 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
whyisjake committed Nov 5, 2019
1 parent d46911c commit afa60b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-includes/rest-api/class-wp-rest-request.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public function get_content_type() {
}

$value = strtolower( $value );
if ( strpos( $value, '/' ) === false ) {
if ( false === strpos( $value, '/' ) ) {
return null;
}

Expand Down

0 comments on commit afa60b7

Please sign in to comment.