From c897a0ba270f217512e37f8bd520dd24b35b058d Mon Sep 17 00:00:00 2001 From: donncha Date: Wed, 28 Feb 2007 12:13:39 +0000 Subject: WP Merge to rev 4956 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@904 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/classes.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'wp-includes/classes.php') diff --git a/wp-includes/classes.php b/wp-includes/classes.php index 223780f..e8563ec 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -414,16 +414,16 @@ class Walker { $cb_args = array_merge( array($output, $element, $depth - 1), $args); $output = call_user_func_array(array(&$this, 'start_el'), $cb_args); } - + // End the element. if ( isset($element->$id_field) && $element->$id_field != 0 ) { $cb_args = array_merge( array($output, $element, $depth - 1), $args); $output = call_user_func_array(array(&$this, 'end_el'), $cb_args); } - - continue; + + continue; } - + // Walk the tree. if ( !empty($previous_element) && ($element->$parent_field == $previous_element->$id_field) ) { // Previous element is my parent. Descend a level. @@ -512,19 +512,19 @@ class Walker_Page extends Walker { $css_class .= ' current_page_parent'; $output .= $indent . '
  • ' . $page->post_title . ''; - + if ( !empty($show_date) ) { if ( 'modified' == $show_date ) $time = $page->post_modified; else $time = $page->post_date; - + $output .= " " . mysql2date($date_format, $time); } return $output; } - + function end_el($output, $page, $depth) { $output .= "
  • \n"; @@ -613,10 +613,10 @@ class Walker_Category extends Walker { if ( empty($feed_image) ) $link .= ')'; } - + if ( isset($show_count) && $show_count ) $link .= ' (' . intval($category->category_count) . ')'; - + if ( isset($show_date) && $show_date ) { $link .= ' ' . gmdate('Y-m-d', $category->last_update_timestamp); } -- cgit