From 27a7f46249bf03b58fe809d4d58f1eb11d412658 Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@10704 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 ) {