diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 8e11e6cdc7..f12c9fd0b6 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -127,7 +127,41 @@ function cat_rows($parent = 0, $level = 0, $categories = 0) { $count $edit "; - cat_rows($category->cat_ID, $level + 1); + cat_rows($category->cat_ID, $level + 1, $categories); + } + } + } else { + return false; + } +} + +function page_rows( $parent = 0, $level = 0, $pages = 0 ) { + global $wpdb, $class, $user_level, $post; + if (!$pages) + $pages = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_status = 'static' ORDER BY menu_order"); + + if ($pages) { + foreach ($pages as $post) { start_wp(); + if ($post->post_parent == $parent) { + $post->post_title = wp_specialchars($post->post_title); + $pad = str_repeat('— ', $level); + $id = $post->ID; + $class = ('alternate' == $class) ? '' : 'alternate'; +?> + + ID; ?> + + + + + + + $authordata->user_level) or ($user_login == $authordata->user_login)) { echo "" . __('Edit') . ""; } ?> + $authordata->user_level) or ($user_login == $authordata->user_login)) { echo "" . __('Delete') . ""; } ?> + + + - - - - - - - - - - $authordata->user_level) or ($user_login == $authordata->user_login)) { echo "" . __('Edit') . ""; } ?> - $authordata->user_level) or ($user_login == $authordata->user_login)) { echo "" . __('Delete') . ""; } ?> - - + post_title; + if ( 0 != $id ) $title = $wpdb->get_var("SELECT post_title FROM $wpdb->posts WHERE ID = $id"); @@ -365,10 +366,15 @@ function wp_list_pages($args = '') { if (!isset($r['depth'])) $r['depth'] = 0; if (!isset($r['show_date'])) $r['show_date'] = ''; if (!isset($r['child_of'])) $r['child_of'] = 0; + if ( !isset($r['title_li']) ) $r['title_li'] = __('Pages'); + // Query pages. $pages = get_pages($args); + if ( $pages ) : + if ( $r['title_li'] ) + echo '
  • ' . $r['title_li'] . '
  • '; + endif; } function _page_level_out($parent, $page_tree, $args, $depth = 0) { diff --git a/wp-includes/wp-layout.css b/wp-includes/wp-layout.css index 6b1f0a533d..f95cf77536 100644 --- a/wp-includes/wp-layout.css +++ b/wp-includes/wp-layout.css @@ -228,7 +228,7 @@ ul.post-meta span.post-meta-key { #menu ul ul li { border: 0; - font: normal normal 70%/115% 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; + font: normal normal 12px/115% 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; letter-spacing: 0; margin-top: 0; padding: 0; diff --git a/wp-includes/wp-sidebar.php b/wp-includes/wp-sidebar.php index 840e7b817d..717fe620c5 100644 --- a/wp-includes/wp-sidebar.php +++ b/wp-includes/wp-sidebar.php @@ -3,6 +3,7 @@