Make WordPress Core

Ticket #45883: 45883.1.diff

File 45883.1.diff, 543 bytes (added by audrasjb, 7 years ago)

Adds private posts to recent posts widget

  • src/wp-includes/widgets/class-wp-widget-recent-posts.php

    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..f08fc8d 100644
    a b class WP_Widget_Recent_Posts extends WP_Widget { 
    7373                                array(
    7474                                        'posts_per_page'      => $number,
    7575                                        'no_found_rows'       => true,
    76                                         'post_status'         => 'publish',
    7776                                        'ignore_sticky_posts' => true,
    7877                                ),
    7978                                $instance