From fafe6e5f01389f481173de50dfa424cc8d9d1f2d Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sun, 13 Dec 2009 13:01:30 +0000 Subject: [PATCH] Fix notice on edit posts page when logged in as a user without the 'edit_others_posts' capability. git-svn-id: https://develop.svn.wordpress.org/trunk@12390 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/edit.php b/wp-admin/edit.php index ca17e9b6ee..dc0d3f2d44 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -193,7 +193,7 @@ $class = ''; $allposts = ''; if ( $user_posts ) { - if ( $_GET['author'] == $current_user->ID ) + if ( isset( $_GET['author'] ) && ( $_GET['author'] == $current_user->ID ) ) $class = ' class="current"'; $status_links[] = "
  • " . sprintf( _nx( 'My Posts (%s)', 'My Posts (%s)', $user_posts_count, 'posts' ), number_format_i18n( $user_posts_count ) ) . ''; $allposts = '?all_posts=1';