From 5f5744e143e1a81232321b0c25571162283e8734 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 4 Mar 2009 20:26:56 +0000 Subject: [PATCH] Allow comments_popup_link() for is_single and is_page. Props AaronCampbell, sivel. fixes #4832 git-svn-id: https://develop.svn.wordpress.org/trunk@10704 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/comment-template.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index a4a126bc4f..8dd612edc4 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -902,9 +902,6 @@ function comments_popup_script($width=400, $height=400, $file='') { function comments_popup_link( $zero = 'No Comments', $one = '1 Comment', $more = '% Comments', $css_class = '', $none = 'Comments Off' ) { global $id, $wpcommentspopupfile, $wpcommentsjavascript, $post; - if ( is_single() || is_page() ) - return; - $number = get_comments_number( $id ); if ( 0 == $number && 'closed' == $post->comment_status && 'closed' == $post->ping_status ) {