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';