diff --git a/src/wp-includes/widgets/class-wp-widget-recent-posts.php b/src/wp-includes/widgets/class-wp-widget-recent-posts.php
index c137849..03c307e 100644
|
a
|
b
|
class WP_Widget_Recent_Posts extends WP_Widget { |
| 56 | 56 | } |
| 57 | 57 | $show_date = isset( $instance['show_date'] ) ? $instance['show_date'] : false; |
| 58 | 58 | |
| | 59 | $post_status = array( 'publish' ); |
| | 60 | if ( is_user_logged_in() ) { |
| | 61 | $post_status[] = 'private'; |
| | 62 | } |
| | 63 | |
| 59 | 64 | /** |
| 60 | 65 | * Filters the arguments for the Recent Posts widget. |
| 61 | 66 | * |
| … |
… |
class WP_Widget_Recent_Posts extends WP_Widget { |
| 73 | 78 | array( |
| 74 | 79 | 'posts_per_page' => $number, |
| 75 | 80 | 'no_found_rows' => true, |
| 76 | | 'post_status' => 'publish', |
| | 81 | 'post_status' => $post_status, |
| 77 | 82 | 'ignore_sticky_posts' => true, |
| 78 | 83 | ), |
| 79 | 84 | $instance |