Changeset 38491
- Timestamp:
- 09/01/2016 05:10:07 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r38471 r38491 2412 2412 } else { // Other non singular e.g. front 2413 2413 $cjoin = "JOIN {$this->db->posts} ON ( {$this->db->comments}.comment_post_ID = {$this->db->posts}.ID )"; 2414 $cwhere = "WHERE ( post_status = 'publish' OR ( post_status = 'inherit' &&post_type = 'attachment' ) ) AND comment_approved = '1'";2414 $cwhere = "WHERE ( post_status = 'publish' OR ( post_status = 'inherit' AND post_type = 'attachment' ) ) AND comment_approved = '1'"; 2415 2415 $cgroupby = ''; 2416 2416 }
Note: See TracChangeset
for help on using the changeset viewer.