Changeset 40136 for branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
- Timestamp:
- 02/27/2017 07:53:43 PM (9 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
- Property svn:mergeinfo changed
/trunk merged: 40037,40122
- Property svn:mergeinfo changed
-
branches/4.7/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r40115 r40136 221 221 if ( isset( $registered['sticky'], $request['sticky'] ) ) { 222 222 $sticky_posts = get_option( 'sticky_posts', array() ); 223 if ( $sticky_posts && $request['sticky'] ) { 223 if ( ! is_array( $sticky_posts ) ) { 224 $sticky_posts = array(); 225 } 226 if ( $request['sticky'] ) { 224 227 /* 225 228 * As post__in will be used to only get sticky posts, … … 235 238 */ 236 239 if ( ! $args['post__in'] ) { 237 $args['post__in'] = array( -1);240 $args['post__in'] = array( 0 ); 238 241 } 239 242 } elseif ( $sticky_posts ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)