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

git-svn-id: https://develop.svn.wordpress.org/trunk@3528 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-02-14 06:23:03 +00:00
parent 0fff955751
commit b8dd301bf4
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ if ( is_month() ) {
</fieldset>
</form>
<?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");
<?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");
if ( count($arc_result) ) { ?>