mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 18:24:31 +00:00
git-svn-id: https://develop.svn.wordpress.org/trunk@8961 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -843,6 +843,15 @@ class WP_Query {
|
||||
*/
|
||||
var $max_num_pages = 0;
|
||||
|
||||
/**
|
||||
* The amount of comment pages.
|
||||
*
|
||||
* @since 2.7.0
|
||||
* @access public
|
||||
* @var int
|
||||
*/
|
||||
var $max_num_comment_pages = 0;
|
||||
|
||||
/**
|
||||
* Set if query is single post.
|
||||
*
|
||||
@@ -1612,6 +1621,9 @@ class WP_Query {
|
||||
else if ( $q['posts_per_page'] == 0 )
|
||||
$q['posts_per_page'] = 1;
|
||||
|
||||
if ( !isset($q['comments_per_page']) || $q['comments_per_page'] == 0 )
|
||||
$q['comments_per_page'] = get_option('comments_per_page');
|
||||
|
||||
if ( $this->is_home && (empty($this->query) || $q['preview'] == 'true') && ( 'page' == get_option('show_on_front') ) && get_option('page_on_front') ) {
|
||||
$this->is_page = true;
|
||||
$this->is_home = false;
|
||||
|
||||
Reference in New Issue
Block a user