Ticket #11329: 11329.001.diff
File 11329.001.diff, 724 bytes (added by , 13 years ago) |
---|
-
wp-admin/includes/template.php
2012 2012 $post = (int) $post; 2013 2013 $count = wp_count_comments(); 2014 2014 $index = ''; 2015 $userid = apply_filters( 'get_comment_list_by_user', '' ); 2015 2016 2016 2017 if ( 'moderated' == $status ) { 2017 2018 $approved = "c.comment_approved = '0'"; … … 2055 2056 $total = ''; 2056 2057 2057 2058 $query = "FROM $wpdb->comments c LEFT JOIN $wpdb->posts p ON c.comment_post_ID = p.ID WHERE p.post_status != 'trash' "; 2059 if ( !empty($userid) ) 2060 $query .= "AND user_id = '$userid'"; 2058 2061 if ( $s ) { 2059 2062 $total = ''; 2060 2063 $s = $wpdb->escape($s);