WordPress.org

Make WordPress Core

Ticket #9472: post-template.diff

File post-template.diff, 515 bytes (added by minusfive, 6 years ago)
  • post-template.php

     
    621621                        $output .= '<li class="pagenav">' . $r['title_li'] . '<ul>'; 
    622622 
    623623                global $wp_query; 
    624                 if ( is_page() || $wp_query->is_posts_page ) 
     624                if ( is_page() || is_attachment() || $wp_query->is_posts_page ) 
    625625                        $current_page = $wp_query->get_queried_object_id(); 
    626626                $output .= walk_page_tree($pages, $r['depth'], $current_page, $r); 
    627627