Make WordPress Core

Ticket #27417: default-widgets.php.patch

File default-widgets.php.patch, 905 bytes (added by afercia, 11 years ago)
  • wp-includes/default-widgets.php

     
    561561
    562562                $title = ( ! empty( $instance['title'] ) ) ? $instance['title'] : __( 'Recent Posts' );
    563563                $title = apply_filters( 'widget_title', $title, $instance, $this->id_base );
    564                 $number = ( ! empty( $instance['number'] ) ) ? absint( $instance['number'] ) : 10;
     564                $number = ( ! empty( $instance['number'] ) ) ? absint( $instance['number'] ) : 5;
    565565                if ( ! $number )
    566                         $number = 10;
     566                        $number = 5;
    567567                $show_date = isset( $instance['show_date'] ) ? $instance['show_date'] : false;
    568568
    569569                $r = new WP_Query( apply_filters( 'widget_posts_args', array( 'posts_per_page' => $number, 'no_found_rows' => true, 'post_status' => 'publish', 'ignore_sticky_posts' => true ) ) );