Make WordPress Core


Ignore:
Timestamp:
07/30/2009 01:39:34 PM (17 years ago)
Author:
azaozz
Message:

Trash status updates for posts, pages, comments and attachments, props caesarsgrunt, see #4529

File:
1 edited

Legend:

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

    r11606 r11749  
    21002100            if ( in_array( 'publish', $q_status ) )
    21012101                $r_status[] = "$wpdb->posts.post_status = 'publish'";
     2102            if ( in_array( 'trash', $q_status ) )
     2103                $r_status[] = "$wpdb->posts.post_status = 'trash'";
    21022104
    21032105            if ( empty($q['perm'] ) || 'readable' != $q['perm'] ) {
Note: See TracChangeset for help on using the changeset viewer.