Pass all args to the page walker.

git-svn-id: http://svn.automattic.com/wordpress/trunk@4723 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-01-12 03:54:22 +00:00
parent 9b0816118a
commit 2d6e81e033
2 changed files with 3 additions and 3 deletions

View File

@ -498,10 +498,10 @@ class Walker_Page extends Walker {
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 )
$indent = str_repeat("\t", $depth);
extract($args);
$css_class = 'page_item';
$_current_page = get_page( $current_page );
if ( $page->ID == $current_page )

View File

@ -289,7 +289,7 @@ function wp_list_pages($args = '') {
global $wp_query;
$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'] )
$output .= '</ul></li>';