From fac34b2423f4875c7b2e4642a6f3da2d68bf5f7c Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 23 Oct 2008 18:01:57 +0000 Subject: [PATCH] Set current_page_parent when using page_for_posts. Props betsyk. fixes #7518 git-svn-id: http://svn.automattic.com/wordpress/trunk@9299 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/classes.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 7e717fcd06..a55123ae53 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -1164,6 +1164,8 @@ class Walker_Page extends Walker { $css_class .= ' current_page_item'; elseif ( $_current_page && $page->ID == $_current_page->post_parent ) $css_class .= ' current_page_parent'; + } elseif ( $page->ID == get_settings('page_for_posts') ) { + $css_class .= ' current_page_parent'; } $output .= $indent . '
  • ' . apply_filters('the_title', $page->post_title) . '';