Changeset 11817
- Timestamp:
- 08/15/2009 03:28:03 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r11749 r11817 2073 2073 if ( 'any' == $post_type ) { 2074 2074 $where .= " AND $wpdb->posts.post_type != 'revision'"; 2075 } elseif ( ! empty( $post_type ) ) { 2076 $where .= " AND $wpdb->posts.post_type = '$post_type'"; 2075 2077 } elseif ( $this->is_attachment ) { 2076 2078 $where .= " AND $wpdb->posts.post_type = 'attachment'"; … … 2079 2081 } elseif ($this->is_single) { 2080 2082 $where .= " AND $wpdb->posts.post_type = 'post'"; 2081 } else {2082 $where .= " AND $wpdb->posts.post_type = '$post_type'";2083 2083 } 2084 2084
Note: See TracChangeset
for help on using the changeset viewer.