summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes/comment-functions.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-11-18 13:31:37 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-11-18 13:31:37 +0000
commit2b56b90f06b0018f0dba866e2d799cda640d9597 (patch)
tree5c7ff6836df5f6a9539847b49738e5665c06e498 /wp-inst/wp-includes/comment-functions.php
parent2f31acafe53edd3619b85a16fe1692dee7339a6b (diff)
downloadwordpress-mu-2b56b90f06b0018f0dba866e2d799cda640d9597.tar.gz
wordpress-mu-2b56b90f06b0018f0dba866e2d799cda640d9597.tar.xz
wordpress-mu-2b56b90f06b0018f0dba866e2d799cda640d9597.zip
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@439 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-includes/comment-functions.php')
-rw-r--r--wp-inst/wp-includes/comment-functions.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/wp-inst/wp-includes/comment-functions.php b/wp-inst/wp-includes/comment-functions.php
index ee1a666..4cf7a47 100644
--- a/wp-inst/wp-includes/comment-functions.php
+++ b/wp-inst/wp-includes/comment-functions.php
@@ -307,7 +307,7 @@ function comments_popup_link($zero='No Comments', $one='1 Comment', $more='% Com
if (!empty($CSSclass)) {
echo ' class="'.$CSSclass.'"';
}
- echo 'title="' . __( sprintf('Comment on %s', $post->post_title) ) .'">';
+ echo ' title="' . sprintf( __('Comment on %s'), $post->post_title ) .'">';
comments_number($zero, $one, $more, $number);
echo '</a>';
}
@@ -863,4 +863,9 @@ function check_comment($author, $email, $url, $comment, $user_ip, $user_agent, $
return true;
}
+function get_approved_comments($post_id) {
+ global $wpdb;
+ return $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $post_id AND comment_approved = '1' ORDER BY comment_date");
+}
+
?>