Dion Hulse
7d81c464aa
Comments: Ignore hierarchy in pagination calculation when comment threading is disabled.
...
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.
Merges [36275] to the 4.4 branch.
Props jmdodd.
Fixes #35419 .
Built from https://develop.svn.wordpress.org/branches/4.4@36362
git-svn-id: http://core.svn.wordpress.org/branches/4.4@36329 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-01-20 08:32:27 +00:00
..
2015-12-14 05:25:26 +00:00
2015-11-18 23:36:28 +00:00
2015-12-23 01:51:22 +00:00
2015-07-23 10:03:24 +00:00
2015-06-28 00:17:25 +00:00
2015-10-31 04:42:25 +00:00
2016-01-04 00:41:26 +00:00
2015-11-20 04:34:25 +00:00
2016-01-11 04:38:28 +00:00
2015-12-04 23:36:25 +00:00
2015-10-20 05:57:24 +00:00
2015-10-24 22:45:25 +00:00
2015-10-30 10:40:26 +00:00
2015-12-23 02:00:23 +00:00
2015-11-30 04:15:27 +00:00
2015-06-28 15:27:24 +00:00
2015-11-05 23:38:27 +00:00
2015-06-22 20:55:28 +00:00
2015-11-22 03:51:28 +00:00
2015-10-21 14:03:25 +00:00
2015-12-04 23:11:26 +00:00
2015-11-29 02:27:18 +00:00
2015-12-18 18:14:21 +00:00
2015-11-20 07:24:30 +00:00
2015-09-20 03:52:25 +00:00
2015-10-23 15:43:24 +00:00
2015-12-31 04:07:22 +00:00
2015-09-16 12:46:28 +00:00
2015-12-23 01:53:21 +00:00
2015-10-06 23:45:25 +00:00
2015-12-31 03:32:22 +00:00
2015-09-16 12:46:28 +00:00
2015-09-20 03:52:25 +00:00
2015-12-31 03:32:22 +00:00
2015-09-20 03:52:25 +00:00
2015-09-22 14:03:25 +00:00
2015-10-13 17:02:25 +00:00
2015-10-10 15:45:25 +00:00
2015-09-22 13:58:24 +00:00
2015-09-22 15:09:24 +00:00
2015-10-14 17:27:25 +00:00
2015-01-11 00:13:23 +00:00
2016-01-20 08:02:26 +00:00
2015-10-01 03:58:23 +00:00
2015-10-24 18:57:25 +00:00
2015-11-21 02:52:27 +00:00
2015-11-20 17:46:25 +00:00
2015-10-24 18:25:24 +00:00
2015-10-24 18:21:25 +00:00
2015-11-21 02:52:27 +00:00
2015-11-21 02:52:27 +00:00
2015-11-18 17:07:37 +00:00
2015-11-19 05:02:27 +00:00
2015-05-24 05:40:25 +00:00
2015-09-26 07:04:28 +00:00
2015-09-27 21:37:24 +00:00
2015-09-03 03:28:21 +00:00
2015-09-15 16:16:43 +00:00
2015-09-03 03:30:21 +00:00
2015-10-08 19:27:28 +00:00
2015-09-26 07:04:28 +00:00
2015-10-31 20:50:25 +00:00
2015-10-31 20:50:25 +00:00
2015-08-25 20:28:22 +00:00
2015-10-14 23:44:25 +00:00
2015-11-08 02:25:25 +00:00
2015-11-17 11:27:29 +00:00
2015-10-14 23:44:25 +00:00
2015-10-08 22:07:24 +00:00
2015-09-22 13:46:25 +00:00
2015-10-14 23:44:25 +00:00
2015-09-22 13:16:30 +00:00
2015-11-05 16:45:25 +00:00
2016-01-06 17:24:27 +00:00
2015-11-16 19:04:55 +00:00
2015-11-10 06:45:25 +00:00
2015-12-21 03:53:25 +00:00
2015-09-22 13:48:25 +00:00
2015-10-13 01:13:24 +00:00
2016-01-03 19:50:22 +00:00
2015-12-23 01:42:25 +00:00
2015-08-25 20:28:22 +00:00
2015-10-06 13:54:25 +00:00
2015-07-13 21:03:24 +00:00
2016-01-20 08:32:27 +00:00
2016-01-02 03:35:21 +00:00
2015-10-09 04:28:24 +00:00
2015-09-26 04:51:26 +00:00
2015-10-09 16:33:25 +00:00
2015-11-25 21:52:26 +00:00
2015-11-25 22:38:29 +00:00
2015-09-22 13:36:25 +00:00
2015-11-11 23:50:25 +00:00
2016-01-02 03:36:21 +00:00
2015-12-22 10:55:26 +00:00
2015-10-20 16:21:25 +00:00
2015-11-04 17:47:25 +00:00
2015-10-20 16:21:25 +00:00
2015-10-20 16:21:25 +00:00
2015-11-04 17:47:25 +00:00
2015-10-20 16:21:25 +00:00
2015-10-24 18:50:24 +00:00
2016-01-03 04:42:23 +00:00
2015-12-23 01:39:28 +00:00
2015-06-12 16:54:24 +00:00
2015-06-12 16:54:24 +00:00
2016-01-04 17:19:27 +00:00
2015-11-20 07:24:30 +00:00
2015-10-13 17:18:25 +00:00
2015-10-07 17:11:25 +00:00
2015-12-27 02:12:23 +00:00
2016-01-11 05:06:27 +00:00
2015-11-18 20:30:25 +00:00
2015-11-07 16:12:27 +00:00
2016-01-02 03:56:22 +00:00
2015-11-22 03:51:28 +00:00
2016-01-11 05:06:27 +00:00
2015-10-14 23:44:25 +00:00
2015-09-16 22:19:24 +00:00
2015-10-14 23:44:25 +00:00
2015-06-16 20:01:25 +00:00
2015-11-22 03:51:28 +00:00
2015-11-18 17:42:26 +00:00
2015-10-05 15:06:28 +00:00
2015-12-24 00:26:22 +00:00
2015-10-30 08:57:26 +00:00
2015-10-29 11:52:28 +00:00
2015-09-20 03:52:25 +00:00
2015-11-24 23:07:26 +00:00
2015-09-25 23:58:25 +00:00
2015-08-25 20:28:22 +00:00
2015-11-25 18:55:26 +00:00
2015-10-12 17:00:26 +00:00
2016-01-02 03:54:22 +00:00
2016-01-20 04:38:27 +00:00
2015-11-20 07:24:30 +00:00
2015-10-22 12:17:28 +00:00
2015-11-20 07:24:30 +00:00
2015-08-25 20:28:22 +00:00
2015-11-20 03:32:26 +00:00
2015-01-16 22:51:21 +00:00
2015-12-26 04:48:23 +00:00
2016-01-20 05:35:27 +00:00
2015-10-07 10:36:25 +00:00
2015-10-28 14:06:27 +00:00
2015-11-25 21:45:25 +00:00
2016-01-06 13:24:33 +00:00
2015-12-04 23:25:26 +00:00
2015-09-05 22:33:23 +00:00
2016-01-09 12:56:28 +00:00
2016-01-02 03:39:21 +00:00
2015-11-17 06:13:26 +00:00
2015-09-20 03:52:25 +00:00