Changeset 36696 for trunk/src/wp-includes/query.php
- Timestamp:
- 02/24/2016 09:43:15 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r36647 r36696 3706 3706 // Put sticky posts at the top of the posts array 3707 3707 $sticky_posts = get_option('sticky_posts'); 3708 if ( $this->is_home&& $page <= 1 && is_array($sticky_posts) && !empty($sticky_posts) && !$q['ignore_sticky_posts'] ) {3708 if ( ( $this->is_home || ( defined( 'REST_REQUEST' ) && REST_REQUEST ) ) && $page <= 1 && is_array($sticky_posts) && !empty($sticky_posts) && !$q['ignore_sticky_posts'] ) { 3709 3709 $num_posts = count($this->posts); 3710 3710 $sticky_offset = 0;
Note: See TracChangeset
for help on using the changeset viewer.