Make WordPress Core

Ticket #17590: post-template.diff

File post-template.diff, 640 bytes (added by tobiasn, 13 years ago)

wp_list_pages() css patch for custom post types

  • wp-includes/post-template.php

     
    831831                        $output .= '<li class="pagenav">' . $r['title_li'] . '<ul>';
    832832
    833833                global $wp_query;
    834                 if ( is_page() || is_attachment() || $wp_query->is_posts_page )
     834                if ( is_page() || is_attachment() || $wp_query->is_posts_page || ($wp_query->query_vars['post_type'] != 'post' && is_single()) )
    835835                        $current_page = $wp_query->get_queried_object_id();
    836836                $output .= walk_page_tree($pages, $r['depth'], $current_page, $r);
    837837