WordPress.org

Make WordPress Core

Ticket #7739: 7739.diff

File 7739.diff, 588 bytes (added by MtDewVirus, 6 years ago)
  • wp-includes/widgets.php

     
    912912        else if ( $number > 15 ) 
    913913                $number = 15; 
    914914 
    915         $r = new WP_Query(array('showposts' => $number, 'what_to_show' => 'posts', 'nopaging' => 0, 'post_status' => 'publish')); 
     915        $r = new WP_Query(array('showposts' => $number, 'what_to_show' => 'posts', 'nopaging' => 0, 'post_status' => 'publish', 'caller_get_posts' => 1)); 
    916916        if ($r->have_posts()) : 
    917917?> 
    918918                <?php echo $before_widget; ?>