Comments link not shown if on comments page, link to comment form, number of comments in comment header, and slight font size tweak.
git-svn-id: http://svn.automattic.com/wordpress/trunk@805 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -32,7 +32,8 @@ function comments_popup_script($width=400, $height=400, $file='wp-comments-popup
|
||||
function comments_popup_link($zero='No Comments', $one='1 Comment', $more='% Comments', $CSSclass='', $none='Comments Off') {
|
||||
global $id, $wpcommentspopupfile, $wpcommentsjavascript, $post, $wpdb, $tablecomments, $HTTP_COOKIE_VARS, $cookiehash;
|
||||
global $querystring_start, $querystring_equal, $querystring_separator, $siteurl;
|
||||
global $comment_count_cache;
|
||||
global $comment_count_cache, $single;
|
||||
if (!$single) {
|
||||
if ('' == $comment_count_cache["$id"]) {
|
||||
$number = $wpdb->get_var("SELECT COUNT(comment_ID) FROM $tablecomments WHERE comment_post_ID = $id AND comment_approved = '1';");
|
||||
} else {
|
||||
@@ -65,6 +66,7 @@ function comments_popup_link($zero='No Comments', $one='1 Comment', $more='% Com
|
||||
comments_number($zero, $one, $more, $number);
|
||||
echo '</a>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function comment_ID() {
|
||||
|
||||
Reference in New Issue
Block a user