From 4cd4edc63883c997d2452798c2f4a7c30e1a909a Mon Sep 17 00:00:00 2001 From: saxmatt Date: Tue, 6 Jul 2004 18:14:42 +0000 Subject: [PATCH] http://mosquito.wordpress.org/bug_view_page.php?bug_id=0000145 and a few other hardcoded styles. git-svn-id: http://svn.automattic.com/wordpress/trunk@1454 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-functions.php | 4 ++-- wp-admin/edit-comments.php | 4 ++-- wp-admin/edit.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 14349e3d7e..633922fc6c 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -117,8 +117,8 @@ function cat_rows($parent = 0, $level = 0, $categories = 0) { $count = $wpdb->get_var("SELECT COUNT(post_id) FROM $wpdb->post2cat WHERE category_id = $category->cat_ID"); $pad = str_repeat('— ', $level); - $bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee'; - echo "$category->cat_ID$pad $category->cat_name + $class = ('alternate' == $class) ? '' : 'alternate'; + echo "$category->cat_ID$pad $category->cat_name $category->category_description $count " . __('Edit') . "cat_name)) . "')\" class='delete'>" . __('Delete') . " diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index 3719bb4cf4..7511e16a90 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -120,9 +120,9 @@ if ('view' == $mode) { '; foreach ($comments as $comment) { $authordata = get_userdata($wpdb->get_var("SELECT post_author FROM $wpdb->posts WHERE ID = $comment->comment_post_ID")); - $bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee'; + $class = ('alternate' == $class) ? '' : 'alternate'; ?> - + $authordata->user_level) or ($user_login == $authordata->user_login)) { ?> diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 5c8d585f51..22924efdaf 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -94,9 +94,9 @@ include(ABSPATH.'wp-blog-header.php'); if ($posts) { $bgcolor = ''; foreach ($posts as $post) { start_wp(); -$bgcolor = ('#eee' == $bgcolor) ? 'none' : '#eee'; +$class = ('alternate' == $class) ? '' : 'alternate'; ?> - + g:i:s a'); ?>