WordPress.org

Make WordPress Core

Changeset 16613


Ignore:
Timestamp:
11/29/10 17:34:43 (5 years ago)
Author:
nbachiyski
Message:

comments_number() doesn't need to call get_the_ID(), because get_comments_number() does it if post ID is missing

File:
1 edited

Legend:

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

    r16230 r16613  
    575575        _deprecated_argument( __FUNCTION__, '1.3' ); 
    576576 
    577     $number = get_comments_number(get_the_ID()); 
     577    $number = get_comments_number(); 
    578578 
    579579    if ( $number > 1 ) 
Note: See TracChangeset for help on using the changeset viewer.