Changeset 6047

Show
Ignore:
Timestamp:
09/06/07 04:33:35 (1 year ago)
Author:
markjaquith
Message:

Default to showing published posts on Manage Posts page. fixes #4858

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/edit.php

    r6034 r6047  
    2121$post_status_q = ''; 
    2222$post_status_label = __('Posts'); 
    23 if ( isset($_GET['post_status']) && in_array( $_GET['post_status'], array_keys($post_stati) ) ) { 
     23 
     24if ( !isset($_GET['post_status']) ) 
     25    $_GET['post_status'] = 'publish'; 
     26 
     27if ( in_array( $_GET['post_status'], array_keys($post_stati) ) ) { 
    2428    $post_status_label = $post_stati[$_GET['post_status']][1]; 
    2529    $post_status_q = '&post_status=' . $_GET['post_status'];