WordPress.org

Make WordPress Core

Ticket #47638: 47638.diff

File 47638.diff, 556 bytes (added by juiiee8487, 9 months ago)

Created patch.

  • src/wp-includes/class-wp-query.php

    diff --git a/src/wp-includes/class-wp-query.php b/src/wp-includes/class-wp-query.php
    index 97b7fc4155..fc1b388e9f 100644
    a b class WP_Query { 
    25652565
    25662566                // Comments feeds
    25672567                if ( $this->is_comment_feed && ! $this->is_singular ) {
     2568                        $climits = '';
    25682569                        if ( $this->is_archive || $this->is_search ) {
    25692570                                $cjoin    = "JOIN {$wpdb->posts} ON ({$wpdb->comments}.comment_post_ID = {$wpdb->posts}.ID) $join ";
    25702571                                $cwhere   = "WHERE comment_approved = '1' $where";