Changeset 11822
- Timestamp:
- 08/15/2009 10:57:56 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r11817 r11822 1597 1597 $q['post_type'] = 'any'; 1598 1598 else 1599 $q['post_type'] = ' post';1599 $q['post_type'] = ''; 1600 1600 } 1601 1601 $post_type = $q['post_type']; … … 2079 2079 } elseif ($this->is_page) { 2080 2080 $where .= " AND $wpdb->posts.post_type = 'page'"; 2081 } else if ($this->is_single){2081 } else { 2082 2082 $where .= " AND $wpdb->posts.post_type = 'post'"; 2083 $post_type = 'post'; 2083 2084 } 2084 2085
Note: See TracChangeset
for help on using the changeset viewer.