Make WordPress Core


Ignore:
Timestamp:
02/14/2006 06:23:03 AM (18 years ago)
Author:
ryan
Message:

Don't show private and draft pages in post lists. fixes #2442

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit.php

    r3517 r3528  
    8585</form>
    8686
    87 <?php $arc_result = $wpdb->get_results("SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts WHERE post_date != '0000-00-00 00:00:00' ORDER BY post_date DESC");
     87<?php $arc_result = $wpdb->get_results("SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts WHERE post_type = 'post' ORDER BY post_date DESC");
    8888
    8989if ( count($arc_result) ) { ?>
Note: See TracChangeset for help on using the changeset viewer.