WordPress.org

Make WordPress Core

Changeset 6047


Ignore:
Timestamp:
09/06/2007 04:33:35 AM (13 years ago)
Author:
markjaquith
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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'];
Note: See TracChangeset for help on using the changeset viewer.