Ticket #19366: 19366.patch
| File 19366.patch, 519 bytes (added by SergeyBiryukov, 18 months ago) |
|---|
-
wp-includes/query.php
2683 2683 } 2684 2684 } 2685 2685 2686 if ( $this->is_preview && current_user_can( $edit_cap, $this->posts[0]->ID ) )2686 if ( $this->is_preview && !empty( $this->posts ) && current_user_can( $edit_cap, $this->posts[0]->ID ) ) 2687 2687 $this->posts[0] = apply_filters_ref_array('the_preview', array( $this->posts[0], &$this )); 2688 2688 } 2689 2689
