Changeset 20047 for trunk/wp-includes/default-widgets.php
- Timestamp:
- 02/29/2012 09:56:24 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/default-widgets.php
r19838 r20047 544 544 $number = 10; 545 545 546 $r = new WP_Query( array('posts_per_page' => $number, 'no_found_rows' => true, 'post_status' => 'publish', 'ignore_sticky_posts' => true));546 $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 ) ) ); 547 547 if ($r->have_posts()) : 548 548 ?> … … 650 650 $number = 5; 651 651 652 $comments = get_comments( a rray( 'number' => $number, 'status' => 'approve', 'post_status' => 'publish') );652 $comments = get_comments( apply_filters( 'widget_comments_args', array( 'number' => $number, 'status' => 'approve', 'post_status' => 'publish' ) ) ); 653 653 $output .= $before_widget; 654 654 if ( $title )
Note: See TracChangeset
for help on using the changeset viewer.