Files
wordpress-develop/src/wp-includes
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-10-28 20:47:30 +00:00
2014-09-11 19:06:33 +00:00
2014-08-09 19:29:37 +00:00
2014-08-09 19:29:37 +00:00
2014-10-18 19:03:11 +00:00
2014-06-10 00:29:35 +00:00
2013-10-23 14:37:54 +00:00
2014-03-26 18:42:41 +00:00
2014-09-29 04:06:54 +00:00
2014-10-28 21:25:30 +00:00
2014-07-09 18:06:54 +00:00
2014-10-23 23:31:19 +00:00