WordPress.org

Make WordPress Core

Ticket #2690: page-depth.diff

File page-depth.diff, 587 bytes (added by skeltoac, 8 years ago)
  • wp-includes/template-functions-post.php

     
    425425 
    426426                global $wp_query; 
    427427                $current_page = $wp_query->get_queried_object_id(); 
    428                 $output .= walk_page_tree($pages, $depth, $current_page, $r['show_date'], $r['date_format']); 
     428                $output .= walk_page_tree($pages, $r['depth'], $current_page, $r['show_date'], $r['date_format']); 
    429429 
    430430                if ( $r['title_li'] ) 
    431431                        $output .= '</ul></li>';