Ensure there is a join Fixes #4390
This commit is contained in:
parent
33f07a05a8
commit
cc7325e869
|
@ -74,7 +74,7 @@ class WC_Comments {
|
|||
public function exclude_order_comments_from_feed_join( $join ) {
|
||||
global $wpdb;
|
||||
|
||||
if ( ! $join )
|
||||
if ( ! strstr( $join, $wpdb->posts ) )
|
||||
$join = " LEFT JOIN $wpdb->posts ON $wpdb->comments.comment_post_ID = $wpdb->posts.ID ";
|
||||
|
||||
return $join;
|
||||
|
|
Loading…
Reference in New Issue