Make WordPress Core


Ignore:
Timestamp:
06/14/2007 04:24:28 PM (16 years ago)
Author:
markjaquith
Message:

Introducing post_status="pending". see #4446 and put any initial bug reports on that ticket

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r5700 r5707  
    10071007            if ( in_array( 'draft'  , $q_status ) )
    10081008                $r_status[] = "post_status = 'draft'";
     1009            if ( in_array( 'pending', $q_status ) )
     1010                $r_status[] = "post_status = 'pending'";
    10091011            if ( in_array( 'future' , $q_status ) )
    10101012                $r_status[] = "post_status = 'future'";
     
    10211023
    10221024            if ( is_admin() )
    1023                 $where .= " OR post_status = 'future' OR post_status = 'draft'";
     1025                $where .= " OR post_status = 'future' OR post_status = 'draft' OR post_status = 'pending'";
    10241026
    10251027            if ( is_user_logged_in() ) {
     
    11291131                    $this->posts = array();
    11301132                } else {
    1131                     if ('draft' == $status) {
     1133                    if  (in_array($status, array('draft', 'pending')) ) {
    11321134                        // User must have edit permissions on the draft to preview.
    11331135                        if (! current_user_can('edit_post', $this->posts[0]->ID)) {
Note: See TracChangeset for help on using the changeset viewer.