Make WordPress Core


Ignore:
Timestamp:
09/14/2008 05:50:10 AM (16 years ago)
Author:
ryan
Message:

Don't show stick posts in recent posts widget. Props MtDewVirus. fixes #7739

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/widgets.php

    r8746 r8886  
    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?>
Note: See TracChangeset for help on using the changeset viewer.