Boone Gorges
114c1f32ba
Improve global variable setting in setup_postdata().
...
`setup_postdata()` is responsible for setting a number of global variables
that are used for post pagination (`$pages`, `$page`, `$nextpage`) and the
generation of post excerpts (`$more`). These variables should be sensitive to
the currently running instance of `WP_Query` - rather than the main query -
so that these features work properly inside of secondary `WP_Query` loops.
This changeset moves the logic of `setup_postdata()` into a method on `WP_Query`,
and converts `setup_postdata()` to a wrapper.
Props boonebgorges, wonderboymusic.
See #25349 .
Fixes #9256 , #20904 .
git-svn-id: https://develop.svn.wordpress.org/trunk@30085 602fd350-edb4-49c9-b593-d223f7449a82
2014-10-29 02:31:37 +00:00
..
2014-02-27 02:32:57 +00:00
2014-10-28 20:47:30 +00:00
2014-08-17 15:00:40 +00:00
2014-09-11 19:06:33 +00:00
2014-10-28 22:01:12 +00:00
2014-10-29 01:20:03 +00:00
2014-08-13 03:55:10 +00:00
2013-09-11 04:01:44 +00:00
2014-05-13 04:39:17 +00:00
2014-09-07 08:31:57 +00:00
2013-12-24 18:56:05 +00:00
2014-06-29 22:33:46 +00:00
2014-07-11 22:58:08 +00:00
2014-09-29 03:11:55 +00:00
2014-08-09 19:29:37 +00:00
2014-10-15 15:42:45 +00:00
2014-08-27 01:31:05 +00:00
2014-08-12 23:47:23 +00:00
2014-06-05 16:25:01 +00:00
2014-05-19 05:26:48 +00:00
2014-10-20 07:31:45 +00:00
2014-08-13 03:55:10 +00:00
2014-09-12 22:53:04 +00:00
2013-12-24 18:56:05 +00:00
2014-03-03 20:24:31 +00:00
2014-08-13 03:55:10 +00:00
2014-09-29 10:27:58 +00:00
2014-05-06 18:28:46 +00:00
2014-08-09 19:29:37 +00:00
2014-10-24 16:31:54 +00:00
2014-10-28 18:34:16 +00:00
2014-10-17 21:24:32 +00:00
2014-08-15 19:35:52 +00:00
2014-10-17 21:20:42 +00:00
2014-10-28 18:34:16 +00:00
2014-10-28 18:34:16 +00:00
2014-09-29 13:27:55 +00:00
2014-10-08 07:11:09 +00:00
2014-05-19 05:50:19 +00:00
2014-10-04 13:11:38 +00:00
2014-10-04 13:11:38 +00:00
2014-10-04 13:11:38 +00:00
2014-10-14 19:57:13 +00:00
2014-08-13 03:55:10 +00:00
2014-09-11 13:55:56 +00:00
2014-08-09 19:29:37 +00:00
2014-07-20 00:33:51 +00:00
2014-10-28 18:34:16 +00:00
2014-10-18 19:03:11 +00:00
2014-10-27 11:44:40 +00:00
2014-10-29 02:21:10 +00:00
2014-10-28 21:12:10 +00:00
2014-10-17 19:16:26 +00:00
2014-10-17 03:50:29 +00:00
2014-10-14 19:57:13 +00:00
2014-10-28 21:11:11 +00:00
2014-10-18 20:10:47 +00:00
2014-06-10 00:29:35 +00:00
2014-07-07 10:17:44 +00:00
2014-07-07 10:17:44 +00:00
2014-07-07 10:17:44 +00:00
2014-07-07 10:17:44 +00:00
2014-07-07 10:17:44 +00:00
2013-10-23 14:37:54 +00:00
2014-08-12 01:08:19 +00:00
2014-10-11 02:32:15 +00:00
2014-10-28 21:28:34 +00:00
2014-09-29 13:27:55 +00:00
2014-10-05 21:05:54 +00:00
2014-10-28 21:11:11 +00:00
2014-10-21 21:12:30 +00:00
2014-10-28 19:35:17 +00:00
2014-10-21 17:57:41 +00:00
2014-10-28 19:38:41 +00:00
2014-08-25 17:39:46 +00:00
2013-11-13 14:00:59 +00:00
2014-09-29 03:44:25 +00:00
2014-10-29 00:46:15 +00:00
2014-10-19 18:53:55 +00:00
2014-09-02 07:29:47 +00:00
2014-07-19 23:13:19 +00:00
2014-09-02 07:29:47 +00:00
2014-10-24 04:48:31 +00:00
2014-10-28 20:55:39 +00:00
2014-06-10 00:43:32 +00:00
2014-06-30 23:49:34 +00:00
2014-10-26 23:18:03 +00:00
2014-10-25 13:42:57 +00:00
2014-08-13 02:46:18 +00:00
2014-03-03 02:33:24 +00:00
2014-10-24 17:07:53 +00:00
2014-09-29 13:36:38 +00:00
2013-11-24 13:44:42 +00:00
2014-10-27 02:15:35 +00:00
2014-03-26 18:42:41 +00:00
2014-10-27 13:07:38 +00:00
2014-10-29 02:31:37 +00:00
2014-07-03 19:27:54 +00:00
2014-09-29 13:27:55 +00:00
2013-09-25 00:17:40 +00:00
2014-08-13 03:55:10 +00:00
2014-10-22 03:40:13 +00:00
2014-09-20 17:27:46 +00:00
2014-09-29 04:06:54 +00:00
2014-10-28 21:25:30 +00:00
2013-10-30 03:19:16 +00:00
2014-07-09 18:06:54 +00:00
2014-10-28 21:11:11 +00:00
2014-10-28 18:34:16 +00:00
2014-10-26 23:29:11 +00:00
2014-01-10 18:14:20 +00:00
2014-10-23 23:31:19 +00:00
2014-10-15 17:20:34 +00:00
2013-12-11 19:48:29 +00:00
2014-10-05 21:05:54 +00:00
2014-08-13 03:55:10 +00:00