From 5987b868bb833f2a3558f8cbac7bc348d5807b42 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 15 Jul 2007 17:48:01 +0000 Subject: [PATCH] Add classes that indicate post status and author ownership. Props tellyworth. fixes #4628 git-svn-id: https://develop.svn.wordpress.org/trunk@5799 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-post-rows.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-admin/edit-post-rows.php b/wp-admin/edit-post-rows.php index 6723cc3460..4eee06b760 100644 --- a/wp-admin/edit-post-rows.php +++ b/wp-admin/edit-post-rows.php @@ -15,8 +15,10 @@ $bgcolor = ''; while (have_posts()) : the_post(); add_filter('the_title','wp_specialchars'); $class = ('alternate' == $class) ? '' : 'alternate'; +global $current_user; +$post_owner = ( $current_user->ID == $post->post_author ? 'self' : 'other' ); ?> - + post_status ); ?>'>