WordPress.org

Make WordPress Core

Changeset 5973


Ignore:
Timestamp:
08/29/07 18:02:19 (7 years ago)
Author:
ryan
Message:

Limit recent entries query to published posts. fixes #4786

File:
1 edited

Legend:

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

    r5970 r5973  
    811811        $number = 15; 
    812812 
    813     $r = new WP_Query("showposts=$number&what_to_show=posts&nopaging=0"); 
     813    $r = new WP_Query("showposts=$number&what_to_show=posts&nopaging=0&post_status=publish"); 
    814814    if ($r->have_posts()) : 
    815815?> 
Note: See TracChangeset for help on using the changeset viewer.