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.

Built from https://develop.svn.wordpress.org/trunk@46654
  • Loading branch information
whyisjake committed Nov 5, 2019
1 parent e9aca3c commit 339df8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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
2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 339df8c

Please sign in to comment.