Pass all args to the page walker.
git-svn-id: https://develop.svn.wordpress.org/trunk@4723 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b232f9b7c4
commit
b9719b9a71
@ -498,10 +498,10 @@ class Walker_Page extends Walker {
|
|||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
function start_el($output, $page, $depth, $current_page, $show_date, $date_format) {
|
function start_el($output, $page, $depth, $current_page, $args) {
|
||||||
if ( $depth )
|
if ( $depth )
|
||||||
$indent = str_repeat("\t", $depth);
|
$indent = str_repeat("\t", $depth);
|
||||||
|
extract($args);
|
||||||
$css_class = 'page_item';
|
$css_class = 'page_item';
|
||||||
$_current_page = get_page( $current_page );
|
$_current_page = get_page( $current_page );
|
||||||
if ( $page->ID == $current_page )
|
if ( $page->ID == $current_page )
|
||||||
|
@ -289,7 +289,7 @@ function wp_list_pages($args = '') {
|
|||||||
|
|
||||||
global $wp_query;
|
global $wp_query;
|
||||||
$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['show_date'], $r['date_format']);
|
$output .= walk_page_tree($pages, $r['depth'], $current_page, $r);
|
||||||
|
|
||||||
if ( $r['title_li'] )
|
if ( $r['title_li'] )
|
||||||
$output .= '</ul></li>';
|
$output .= '</ul></li>';
|
||||||
|
Loading…
Reference in New Issue
Block a user