Make WordPress Core

Changeset 46639 for branches/5.3


Ignore:
Timestamp:
11/03/2019 06:32:37 PM (7 years ago)
Author:
whyisjake
Message:

REST API: Fix for Yoda condition.

Little coding standards fix for the REST API.

Props mukesh27, spenserhale.
Fixes #48337.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.3/src/wp-includes/rest-api/class-wp-rest-request.php

    r46249 r46639  
    311311
    312312                $value = strtolower( $value );
    313                 if ( strpos( $value, '/' ) === false ) {
     313                if ( false === strpos( $value, '/' ) ) {
    314314                        return null;
    315315                }
Note: See TracChangeset for help on using the changeset viewer.