Index: /home/cristi/svn/wp/wp-admin/edit.php
===================================================================
--- /home/cristi/svn/wp/wp-admin/edit.php	(revision 11039)
+++ /home/cristi/svn/wp/wp-admin/edit.php	(working copy)
@@ -82,8 +82,6 @@
 $parent_file = 'edit.php';
 wp_enqueue_script('inline-edit-post');
 
-list($post_stati, $avail_post_stati) = wp_edit_posts_query();
-
 require_once('admin-header.php');
 
 if ( !isset( $_GET['paged'] ) )
@@ -137,13 +135,18 @@
 <ul class="subsubsub">
 <?php
 if ( empty($locked_post_status) ) :
-$status_links = array();
+$post_filters = array();
 $num_posts = wp_count_posts( 'post', 'readable' );
 $total_posts = array_sum( (array) $num_posts );
-$class = empty( $_GET['post_status'] ) ? ' class="current"' : '';
-$status_links[] = "<li><a href='edit.php' $class>" . sprintf( _n( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_posts ), number_format_i18n( $total_posts ) ) . '</a>';
+$class = ( count( $_GET ) <= 1 ) ? ' class="current"' : '';
+$post_filters[] = "<a href='edit.php' $class>" . sprintf( _n( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $total_posts ), number_format_i18n( $total_posts ) ) . '</a>';
 
+global $user_ID, $wpdb;
+$class = ( $_GET['author'] == $user_ID ) ? ' class="current"' : '';
+$my_posts_count = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'post' AND post_author = $user_ID");
+$post_filters[] = "<a href='edit.php?author=$user_ID' $class>" . __('My posts') . sprintf(' <span class="count">(%s)</span></a>', number_format_i18n($my_posts_count) );
 
+list($post_stati, $avail_post_stati) = wp_edit_posts_query();
 foreach ( $post_stati as $status => $label ) {
 	$class = '';
 
@@ -155,10 +158,17 @@
 	if ( isset($_GET['post_status']) && $status == $_GET['post_status'] )
 		$class = ' class="current"';
 
-	$status_links[] = "<li><a href='edit.php?post_status=$status' $class>" . sprintf( _n( $label[2][0], $label[2][1], $num_posts->$status ), number_format_i18n( $num_posts->$status ) ) . '</a>';
+	$post_filters[] = "<a href='edit.php?post_status=$status' $class>" . sprintf( _n( $label[2][0], $label[2][1], $num_posts->$status ), number_format_i18n( $num_posts->$status ) ) . '</a>';
 }
-echo implode( " |</li>\n", $status_links ) . '</li>';
-unset( $status_links );
+
+$post_filters = apply_filters('edit_posts_filters', $post_filters);
+
+foreach ( $post_filters as $i => $post_filter ) {
+	$post_filters[$i] = '<li>' . $post_filter;
+}
+
+echo implode( " |</li>\n", $post_filters ) . '</li>';
+unset( $post_filters );
 endif;
 ?>
 </ul>
