Make WordPress Core

Changeset 25126


Ignore:
Timestamp:
08/26/2013 06:51:53 PM (11 years ago)
Author:
nacin
Message:

Return 1 from get_comment_pages_count() when pagination is disabled.

props obenland.
fixes #17778.

File:
1 edited

Legend:

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

    r24984 r25126  
    790790        return 0;
    791791
     792    if ( ! get_option( 'page_comments' ) )
     793        return 1;
     794
    792795    if ( !isset($per_page) )
    793796        $per_page = (int) get_query_var('comments_per_page');
Note: See TracChangeset for help on using the changeset viewer.