Revert r36696
This broke embeds. Needs a better solution to also make sure all queries from the REST API aren't broken. see #35907. Built from https://develop.svn.wordpress.org/trunk@36699 git-svn-id: http://core.svn.wordpress.org/trunk@36666 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
237f6a0e58
commit
5ec9a2aeb4
|
@ -3705,7 +3705,7 @@ class WP_Query {
|
|||
|
||||
// Put sticky posts at the top of the posts array
|
||||
$sticky_posts = get_option('sticky_posts');
|
||||
if ( ( $this->is_home || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) ) && $page <= 1 && is_array($sticky_posts) && !empty($sticky_posts) && !$q['ignore_sticky_posts'] ) {
|
||||
if ( $this->is_home && $page <= 1 && is_array($sticky_posts) && !empty($sticky_posts) && !$q['ignore_sticky_posts'] ) {
|
||||
$num_posts = count($this->posts);
|
||||
$sticky_offset = 0;
|
||||
// Loop over posts and relocate stickies to the front.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-alpha-36698';
|
||||
$wp_version = '4.5-alpha-36699';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue