Ticket #21101: 21101.2.diff
File 21101.2.diff, 565 bytes (added by , 12 years ago) |
---|
-
wp-includes/comment.php
266 266 $approved = "comment_approved = '0'"; 267 267 elseif ( 'approve' == $status ) 268 268 $approved = "comment_approved = '1'"; 269 elseif ( ! empty( $status ) )269 elseif ( ! empty( $status ) && 'all' != $status ) 270 270 $approved = $wpdb->prepare( "comment_approved = %s", $status ); 271 271 else 272 272 $approved = "( comment_approved = '0' OR comment_approved = '1' )";