mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Add current_page_item on page_for_posts. Props mdawaffe. fixes #2959
git-svn-id: https://develop.svn.wordpress.org/trunk@7073 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user