Ticket #21309: 21309-stickies.diff
File 21309-stickies.diff, 553 bytes (added by , 13 years ago) |
---|
-
wp-includes/query.php
2750 2750 // Ignore sticky posts the current user cannot read or are not published. 2751 2751 if ( 'publish' != $sticky_post->post_status ) 2752 2752 continue; 2753 array_splice( $this->posts, $sticky_offset, 0, array($sticky_post));2753 array_splice( $this->posts, $sticky_offset, 0, array( get_post( $sticky_post ) ) ); 2754 2754 $sticky_offset++; 2755 2755 } 2756 2756 }