mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-26 08:55:13 +00:00
In order to calculate comment pagination when newest comments are displayed first, `comments_template()` must perform a separate query to determine the total number of paginating comments available on a post. See [34729], #8071, pagination calculation - can be defined as a top-level comment, or a comment with `parent=0`. However, when comment threading is disabled, yet comments exist in the database that have parents, all comments - even those with a parent - are "paginating". (This typically happens when comments threading was once enabled, but has since been turned off.) As such, the total-paginating- comments query should only be limited to top-level comments when 'thread_comments' is disabled. Props jmdodd. Fixes #35419. Built from https://develop.svn.wordpress.org/trunk@36275 git-svn-id: http://core.svn.wordpress.org/trunk@36242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
36 lines
629 B
PHP
36 lines
629 B
PHP
<?php
|
|
/**
|
|
* The WordPress version string
|
|
*
|
|
* @global string $wp_version
|
|
*/
|
|
$wp_version = '4.5-alpha-36275';
|
|
|
|
/**
|
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
|
*
|
|
* @global int $wp_db_version
|
|
*/
|
|
$wp_db_version = 36180;
|
|
|
|
/**
|
|
* Holds the TinyMCE version
|
|
*
|
|
* @global string $tinymce_version
|
|
*/
|
|
$tinymce_version = '4208-20151113';
|
|
|
|
/**
|
|
* Holds the required PHP version
|
|
*
|
|
* @global string $required_php_version
|
|
*/
|
|
$required_php_version = '5.2.4';
|
|
|
|
/**
|
|
* Holds the required MySQL version
|
|
*
|
|
* @global string $required_mysql_version
|
|
*/
|
|
$required_mysql_version = '5.0';
|