WordPress.org

Make WordPress Core

Ticket #4848: 4848.diff

File 4848.diff, 1.5 KB (added by mdawaffe, 11 years ago)
  • wp-admin/edit-pages.php

     
    66require_once('admin-header.php');
    77
    88$post_stati  = array(   //      array( adj, noun )
     9                        'publish' => array(__('Published'), __('Published pages')),
    910                        'draft'   => array(__('Draft'), __('Draft pages')),
    10                         'private' => array(__('Private'), __('Private pages')),
    11                         'publish' => array(__('Published'), __('Published pages'))
     11                        'private' => array(__('Private'), __('Private pages'))
    1212                );
    1313
    1414
  • wp-admin/edit.php

     
    99$_GET['m']   = (int) $_GET['m'];
    1010$_GET['cat'] = (int) $_GET['cat'];
    1111$post_stati  = array(   //      array( adj, noun )
    12                         'draft' => array(__('Draft'), _c('Drafts|manage posts header')),
     12                        'publish' => array(__('Published'), __('Published posts')),
    1313                        'future' => array(__('Scheduled'), __('Scheduled posts')),
    1414                        'pending' => array(__('Pending Review'), __('Pending posts')),
    15                         'private' => array(__('Private'), __('Private posts')),
    16                         'publish' => array(__('Published'), __('Published posts'))
     15                        'draft' => array(__('Draft'), _c('Drafts|manage posts header')),
     16                        'private' => array(__('Private'), __('Private posts'))
    1717                );
    1818
    1919$avail_post_stati = $wpdb->get_col("SELECT DISTINCT post_status FROM $wpdb->posts WHERE post_type = 'post'");