Make WordPress Core

Ticket #21309: 21309-stickies.diff

File 21309-stickies.diff, 553 bytes (added by mdawaffe, 13 years ago)
  • wp-includes/query.php

     
    27502750                                        // Ignore sticky posts the current user cannot read or are not published.
    27512751                                        if ( 'publish' != $sticky_post->post_status )
    27522752                                                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 ) ) );
    27542754                                        $sticky_offset++;
    27552755                                }
    27562756                        }