Make WordPress Core

Changeset 22090


Ignore:
Timestamp:
10/01/2012 03:31:40 PM (12 years ago)
Author:
ryan
Message:

Restore the behavior of the 'all' status for comment queries. Props SergeyBiryukov. see #21101

File:
1 edited

Legend:

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

    r22088 r22090  
    264264        elseif ( 'approve' == $status )
    265265            $approved = "comment_approved = '1'";
    266         elseif ( ! empty( $status ) )
     266        elseif ( ! empty( $status ) && 'all' != $status )
    267267            $approved = $wpdb->prepare( "comment_approved = %s", $status );
    268268        else
Note: See TracChangeset for help on using the changeset viewer.