mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Add current_page_item on page_for_posts. Props mdawaffe. fixes #2959
git-svn-id: http://svn.automattic.com/wordpress/trunk@7073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d91f8ed06e
commit
affd57730c
@ -326,7 +326,7 @@ function wp_list_pages($args = '') {
|
||||
$output .= '<li class="pagenav">' . $r['title_li'] . '<ul>';
|
||||
|
||||
global $wp_query;
|
||||
if ( is_page() )
|
||||
if ( is_page() || $wp_query->is_posts_page )
|
||||
$current_page = $wp_query->get_queried_object_id();
|
||||
$output .= walk_page_tree($pages, $r['depth'], $current_page, $r);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user