Make WordPress Core


Ignore:
Timestamp:
02/09/2020 04:52:28 PM (5 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/class-walker-page.php

    r46413 r47219  
    131131                $css_class[] = 'current_page_parent';
    132132            }
    133         } elseif ( $page->ID == get_option( 'page_for_posts' ) ) {
     133        } elseif ( get_option( 'page_for_posts' ) == $page->ID ) {
    134134            $css_class[] = 'current_page_parent';
    135135        }
Note: See TracChangeset for help on using the changeset viewer.