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
This commit is contained in:
Ryan Boren 2009-03-04 20:26:56 +00:00
parent 3548fa79f9
commit 5f5744e143
1 changed files with 0 additions and 3 deletions

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' ) {
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 ) {