Changeset 63077 for branches/6.9/src/wp-includes/class-wp-query.php
- Timestamp:
- 08/06/2026 05:32:00 PM (3 months ago)
- Location:
- branches/6.9
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/class-wp-query.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/6.9
- Property svn:mergeinfo changed
/trunk merged: 62804,63059-63065,63067
- Property svn:mergeinfo changed
-
branches/6.9/src/wp-includes/class-wp-query.php
r62775 r63077 2820 2820 if ( $this->is_archive || $this->is_search ) { 2821 2821 $cjoin = "JOIN {$wpdb->posts} ON ( {$wpdb->comments}.comment_post_ID = {$wpdb->posts}.ID ) $join "; 2822 $cwhere = "WHERE comment_approved = '1' $where";2822 $cwhere = "WHERE comment_approved = '1' AND {$wpdb->comments}.comment_type != 'note' $where"; 2823 2823 $cgroupby = "{$wpdb->comments}.comment_id"; 2824 2824 } else { // Other non-singular, e.g. front. 2825 2825 $cjoin = "JOIN {$wpdb->posts} ON ( {$wpdb->comments}.comment_post_ID = {$wpdb->posts}.ID )"; 2826 $cwhere = "WHERE ( post_status = 'publish' OR ( post_status = 'inherit' AND post_type = 'attachment' ) ) AND comment_approved = '1' ";2826 $cwhere = "WHERE ( post_status = 'publish' OR ( post_status = 'inherit' AND post_type = 'attachment' ) ) AND comment_approved = '1' AND {$wpdb->comments}.comment_type != 'note'"; 2827 2827 $cgroupby = ''; 2828 2828 } … … 3482 3482 3483 3483 /** This filter is documented in wp-includes/query.php */ 3484 $cwhere = apply_filters_ref_array( 'comment_feed_where', array( "WHERE comment_post_ID = '{$this->posts[0]->ID}' AND comment_approved = '1' ", &$this ) );3484 $cwhere = apply_filters_ref_array( 'comment_feed_where', array( "WHERE comment_post_ID = '{$this->posts[0]->ID}' AND comment_approved = '1' AND {$wpdb->comments}.comment_type != 'note'", &$this ) ); 3485 3485 3486 3486 /** This filter is documented in wp-includes/query.php */
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)