Ticket #11329: 11329.003.diff
File 11329.003.diff, 1013 bytes (added by , 13 years ago) |
---|
-
C:/Program
2049 2049 $post = (int) $post; 2050 2050 $count = wp_count_comments(); 2051 2051 $index = ''; 2052 $userid = apply_filters( 'get_comment_list_by_user', '' ); 2052 2053 2053 2054 if ( 'moderated' == $status ) { 2054 2055 $approved = "c.comment_approved = '0'"; … … 2092 2093 $total = ''; 2093 2094 2094 2095 $query = "FROM $wpdb->comments c LEFT JOIN $wpdb->posts p ON c.comment_post_ID = p.ID WHERE p.post_status != 'trash' "; 2096 2097 if ( !empty($userid) ) { 2098 if(!is_array($userid)) { 2099 $query .= "AND p.post_author = '$userid' "; 2100 } else { 2101 $query .= "AND p.post_author IN ('".implode("', '", $userid)."') "; 2102 } 2103 $total = ''; 2104 } 2105 2095 2106 if ( $s ) { 2096 2107 $total = ''; 2097 2108 $s = $wpdb->escape($s);