Coding Standards: Use Yoda conditions where appropriate.
See #49222. Built from https://develop.svn.wordpress.org/trunk@47219 git-svn-id: http://core.svn.wordpress.org/trunk@47019 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -130,7 +130,7 @@ class Walker_Page extends Walker {
|
||||
} elseif ( $_current_page && $page->ID == $_current_page->post_parent ) {
|
||||
$css_class[] = 'current_page_parent';
|
||||
}
|
||||
} elseif ( $page->ID == get_option( 'page_for_posts' ) ) {
|
||||
} elseif ( get_option( 'page_for_posts' ) == $page->ID ) {
|
||||
$css_class[] = 'current_page_parent';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user