mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-14 01:24:27 +00:00
114c1f32ba1bef4a4fbbdb33bac7fd50a6c7ab17
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
Description
No description provided
Languages
PHP
80.5%
CSS
9.4%
JavaScript
8.5%
SCSS
0.9%
HTML
0.7%