mirror of
git://develop.git.wordpress.org/
synced 2025-01-29 18:48:18 +01:00
Revert [6047] -- we await a better solution. see #4858
git-svn-id: https://develop.svn.wordpress.org/trunk@6065 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ed03cc32dc
commit
cf23955caa
@ -20,11 +20,7 @@ $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']) )
|
||||
$_GET['post_status'] = 'publish';
|
||||
|
||||
if ( in_array( $_GET['post_status'], array_keys($post_stati) ) ) {
|
||||
if ( isset($_GET['post_status']) && 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…
x
Reference in New Issue
Block a user