mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Default to showing published posts on Manage Posts page. fixes #4858
git-svn-id: http://svn.automattic.com/wordpress/trunk@6047 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a40345190e
commit
94973a275b
@ -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'];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user