WordPress.org

Make WordPress Core

Ticket #2959: 2959.diff

File 2959.diff, 508 bytes (added by mdawaffe, 11 years ago)
  • wp-includes/post-template.php

     
    326326                        $output .= '<li class="pagenav">' . $r['title_li'] . '<ul>';
    327327
    328328                global $wp_query;
    329                 if ( is_page() )
     329                if ( is_page() || $wp_query->is_posts_page )
    330330                        $current_page = $wp_query->get_queried_object_id();
    331331                $output .= walk_page_tree($pages, $r['depth'], $current_page, $r);
    332332