Make WordPress Core


Ignore:
Timestamp:
02/09/2020 04:52:28 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use Yoda conditions where appropriate.

See #49222.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/nav-menu.php

    r47209 r47219  
    12671267                        // Build the new array value from leaf to trunk.
    12681268                        for ( $i = count( $array_bits ) - 1; $i >= 0; $i-- ) {
    1269                                 if ( $i == count( $array_bits ) - 1 ) {
     1269                                if ( count( $array_bits ) - 1 == $i ) {
    12701270                                        $new_post_data[ $array_bits[ $i ] ] = wp_slash( $post_input_data->value );
    12711271                                } else {
Note: See TracChangeset for help on using the changeset viewer.