Changeset 36138 for trunk/src/wp-includes/query.php
- Timestamp:
- 12/31/2015 05:15:23 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r36128 r36138 3194 3194 } else { // Other non singular e.g. front 3195 3195 $cjoin = "JOIN $wpdb->posts ON ( $wpdb->comments.comment_post_ID = $wpdb->posts.ID )"; 3196 $cwhere = "WHERE post_status = 'publish'AND comment_approved = '1'";3196 $cwhere = "WHERE ( post_status = 'publish' OR ( post_status = 'inherit' && post_type = 'attachment' ) ) AND comment_approved = '1'"; 3197 3197 $cgroupby = ''; 3198 3198 }
Note: See TracChangeset
for help on using the changeset viewer.