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-includes/feed.php

    r47198 r47219  
    472472
    473473        foreach ( (array) get_post_custom() as $key => $val ) {
    474                 if ( $key == 'enclosure' ) {
     474                if ( 'enclosure' === $key ) {
    475475                        foreach ( (array) $val as $enc ) {
    476476                                $enclosure = explode( "\n", $enc );
     
    512512
    513513        foreach ( (array) get_post_custom() as $key => $val ) {
    514                 if ( $key == 'enclosure' ) {
     514                if ( 'enclosure' === $key ) {
    515515                        foreach ( (array) $val as $enc ) {
    516516                                $enclosure = explode( "\n", $enc );
Note: See TracChangeset for help on using the changeset viewer.