Make WordPress Core

Changeset 10704


Ignore:
Timestamp:
03/04/2009 08:26:56 PM (17 years ago)
Author:
ryan
Message:

Allow comments_popup_link() for is_single and is_page. Props AaronCampbell, sivel. fixes #4832

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r10386 r10704  
    902902function comments_popup_link( $zero = 'No Comments', $one = '1 Comment', $more = '% Comments', $css_class = '', $none = 'Comments Off' ) {
    903903    global $id, $wpcommentspopupfile, $wpcommentsjavascript, $post;
    904 
    905     if ( is_single() || is_page() )
    906         return;
    907904
    908905    $number = get_comments_number( $id );
Note: See TracChangeset for help on using the changeset viewer.