Make WordPress Core


Ignore:
Timestamp:
02/09/2006 10:03:48 AM (20 years ago)
Author:
ryan
Message:

Allow draft pages. Use post_type for object types. Reserve post_status strictly for status. fixes #1820

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-category.php

    r3338 r3510  
    309309        UNIX_TIMESTAMP( MAX(post_date) ) AS ts
    310310        FROM $wpdb->posts, $wpdb->post2cat, $wpdb->categories
    311         WHERE post_status = 'publish' AND post_id = ID $exclusions
     311        WHERE post_type = 'post' AND post_status = 'publish' AND post_id = ID $exclusions
    312312        GROUP BY category_id");
    313313        foreach ( $cat_dates as $cat_date ) {
Note: See TracChangeset for help on using the changeset viewer.