Changeset 10947
- Timestamp:
- 04/16/2009 05:37:58 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r10877 r10947 413 413 $wp_query->post = $wp_query->posts[0]; 414 414 setup_postdata($wp_query->post); 415 415 416 416 $pageID = $wp_query->post->ID; 417 417 $page_children = wp_list_pages("child_of=$pageID&echo=0"); … … 751 751 752 752 global $wp_query; 753 if ( is_page() || $wp_query->is_posts_page )753 if ( is_page() || is_attachment() || $wp_query->is_posts_page ) 754 754 $current_page = $wp_query->get_queried_object_id(); 755 755 $output .= walk_page_tree($pages, $r['depth'], $current_page, $r);
Note: See TracChangeset
for help on using the changeset viewer.