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:
parent
bc5d21252e
commit
ab49d00bc4
|
@ -750,7 +750,7 @@ function wp_list_pages($args = '') {
|
||||||
$output .= '<li class="pagenav">' . $r['title_li'] . '<ul>';
|
$output .= '<li class="pagenav">' . $r['title_li'] . '<ul>';
|
||||||
|
|
||||||
global $wp_query;
|
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();
|
$current_page = $wp_query->get_queried_object_id();
|
||||||
$output .= walk_page_tree($pages, $r['depth'], $current_page, $r);
|
$output .= walk_page_tree($pages, $r['depth'], $current_page, $r);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue