WordPress.org

Make WordPress Core

Ticket #21101: 21101.3.diff

File 21101.3.diff, 596 bytes (added by ryan, 7 years ago)

all|full

  • wp-includes/comment.php

     
    263263                        $approved = "comment_approved = '0'";
    264264                elseif ( 'approve' == $status )
    265265                        $approved = "comment_approved = '1'";
     266                elseif ( 'all' == $status )
     267                        $approved = "( comment_approved = '0' OR comment_approved = '1' )";
     268                elseif ( 'full' == $status )
     269                        $approved = '0 = 0';
    266270                elseif ( ! empty( $status ) )
    267271                        $approved = $wpdb->prepare( "comment_approved = %s", $status );
    268272                else