mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-12 06:43:20 +01:00
Return 1 from get_comment_pages_count() when pagination is disabled.
props obenland. fixes #17778. Built from https://develop.svn.wordpress.org/trunk@25126 git-svn-id: http://core.svn.wordpress.org/trunk@25106 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f137f63e13
commit
4493b8c97a
@ -789,6 +789,9 @@ function get_comment_pages_count( $comments = null, $per_page = null, $threaded
|
|||||||
if ( empty($comments) )
|
if ( empty($comments) )
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
if ( ! get_option( 'page_comments' ) )
|
||||||
|
return 1;
|
||||||
|
|
||||||
if ( !isset($per_page) )
|
if ( !isset($per_page) )
|
||||||
$per_page = (int) get_query_var('comments_per_page');
|
$per_page = (int) get_query_var('comments_per_page');
|
||||||
if ( 0 === $per_page )
|
if ( 0 === $per_page )
|
||||||
|
Loading…
Reference in New Issue
Block a user