Make WordPress Core


Ignore:
Timestamp:
09/04/2010 03:51:04 PM (14 years ago)
Author:
nacin
Message:

Adjustments to [15549]. See #11624.

File:
1 edited

Legend:

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

    r15549 r15563  
    546546 */
    547547function get_comments_number( $post_id = 0 ) {
     548    $post_id = absint( $post_id );
     549
    548550    if ( !$post_id )
    549551        $post_id = get_the_ID();
    550 
    551     $post_id = absint($post_id);
    552552
    553553    $post = get_post($post_id);
Note: See TracChangeset for help on using the changeset viewer.