Changeset 493
- Timestamp:
- 01/21/05 22:31:44 (3 years ago)
- Files:
-
- recent-comments/trunk/recent-comments.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
recent-comments/trunk/recent-comments.php
r404 r493 4 4 Plugin URI: http://dev.wp-plugins.org/browser/recent-comments/ 5 5 Description: Retrieves a list of the most recent comments. 6 Version: 1.1 36 Version: 1.14 7 7 Author: Nick Momrik 8 8 Author URI: http://mtdewvirus.com/ … … 11 11 function get_recent_comments($no_comments = 5, $comment_lenth = 5, $before = '<li>', $after = '</li>', $show_pass_post = false, $comment_style = 0) { 12 12 global $wpdb, $tablecomments, $tableposts; 13 $request = "SELECT ID, comment_ID, comment_content, comment_author, post_title FROM $tablecomments LEFT JOIN $tableposts ON $tableposts.ID=$tablecomments.comment_post_ID ANDpost_status = 'publish' ";13 $request = "SELECT ID, comment_ID, comment_content, comment_author, post_title FROM $tablecomments LEFT JOIN $tableposts ON $tableposts.ID=$tablecomments.comment_post_ID WHERE post_status = 'publish' "; 14 14 if(!$show_pass_post) $request .= "AND post_password ='' "; 15 15 $request .= "AND comment_approved = '1' ORDER BY comment_ID DESC LIMIT $no_comments";
