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
This commit is contained in:
ryan 2009-03-04 20:26:56 +00:00
parent bf0796d4f8
commit 27a7f46249

View File

@ -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' ) { function comments_popup_link( $zero = 'No Comments', $one = '1 Comment', $more = '% Comments', $css_class = '', $none = 'Comments Off' ) {
global $id, $wpcommentspopupfile, $wpcommentsjavascript, $post; global $id, $wpcommentspopupfile, $wpcommentsjavascript, $post;
if ( is_single() || is_page() )
return;
$number = get_comments_number( $id ); $number = get_comments_number( $id );
if ( 0 == $number && 'closed' == $post->comment_status && 'closed' == $post->ping_status ) { if ( 0 == $number && 'closed' == $post->comment_status && 'closed' == $post->ping_status ) {