Ticket #22162: 22162.4.diff
| File 22162.4.diff, 578 bytes (added by , 13 years ago) |
|---|
-
wp-includes/query.php
2725 2725 } 2726 2726 2727 2727 if ( $this->is_preview && $this->posts && current_user_can( $edit_cap, $this->posts[0]->ID ) ) 2728 $this->posts[0] = apply_filters_ref_array('the_preview', array( $this->posts[0], &$this ));2728 $this->posts[0] = get_post( apply_filters_ref_array( 'the_preview', array( $this->posts[0], &$this ) ) ); 2729 2729 } 2730 2730 2731 2731 // Put sticky posts at the top of the posts array