Ticket #27417: default-widgets.php.patch
File default-widgets.php.patch, 905 bytes (added by , 11 years ago) |
---|
-
wp-includes/default-widgets.php
561 561 562 562 $title = ( ! empty( $instance['title'] ) ) ? $instance['title'] : __( 'Recent Posts' ); 563 563 $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; 565 565 if ( ! $number ) 566 $number = 10;566 $number = 5; 567 567 $show_date = isset( $instance['show_date'] ) ? $instance['show_date'] : false; 568 568 569 569 $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 ) ) );