Make WordPress Core


Ignore:
Timestamp:
02/09/2020 04:51:22 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use Yoda conditions in some wp-admin files.

Props subrataemfluence, marcio-zebedeu, bookdude13, 1naveengiri, alishankhan.
Fixes #44365, #48455.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options.php

    r47198 r47218  
    336336foreach ( (array) $options as $option ) :
    337337    $disabled = false;
    338     if ( $option->option_name == '' ) {
     338    if ( '' == $option->option_name ) {
    339339        continue;
    340340    }
Note: See TracChangeset for help on using the changeset viewer.