summaryrefslogtreecommitdiffstats
path: root/wp-includes/classes.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-02-28 12:13:39 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-02-28 12:13:39 +0000
commitc897a0ba270f217512e37f8bd520dd24b35b058d (patch)
treeab5683db986751fe3d79c9aeddcbbafa708870c7 /wp-includes/classes.php
parent8399b696d7660728535b85dbd90466f0e82e6fc8 (diff)
downloadwordpress-mu-c897a0ba270f217512e37f8bd520dd24b35b058d.tar.gz
wordpress-mu-c897a0ba270f217512e37f8bd520dd24b35b058d.tar.xz
wordpress-mu-c897a0ba270f217512e37f8bd520dd24b35b058d.zip
WP Merge to rev 4956
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@904 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/classes.php')
-rw-r--r--wp-includes/classes.php18
1 files changed, 9 insertions, 9 deletions
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 . '<li class="' . $css_class . '"><a href="' . get_page_link($page->ID) . '" title="' . attribute_escape($page->post_title) . '">' . $page->post_title . '</a>';
-
+
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 .= "</li>\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);
}