Add page classes to page attachments. Props minusfive. fixes #9472

git-svn-id: http://svn.automattic.com/wordpress/trunk@10947 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-04-16 17:37:58 +00:00
parent bc5d21252e
commit ab49d00bc4
1 changed files with 2 additions and 2 deletions

View File

@ -750,7 +750,7 @@ function wp_list_pages($args = '') {
$output .= '<li class="pagenav">' . $r['title_li'] . '<ul>';
global $wp_query;
if ( is_page() || $wp_query->is_posts_page )
if ( is_page() || is_attachment() || $wp_query->is_posts_page )
$current_page = $wp_query->get_queried_object_id();
$output .= walk_page_tree($pages, $r['depth'], $current_page, $r);