From c2c79120548d1d86119f109674e6689634682ec7 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Thu, 6 Sep 2007 04:33:35 +0000 Subject: [PATCH] Default to showing published posts on Manage Posts page. fixes #4858 git-svn-id: https://develop.svn.wordpress.org/trunk@6047 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 5bfe1cb8fc..2f8f46e1e8 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -20,7 +20,11 @@ $avail_post_stati = $wpdb->get_col("SELECT DISTINCT post_status FROM $wpdb->post $post_status_q = ''; $post_status_label = __('Posts'); -if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) ) { + +if ( !isset($_GET['post_status']) ) + $_GET['post_status'] = 'publish'; + +if ( in_array( $_GET['post_status'], array_keys($post_stati) ) ) { $post_status_label = $post_stati[$_GET['post_status']][1]; $post_status_q = '&post_status=' . $_GET['post_status']; }