Ensure there is a join Fixes #4390

This commit is contained in:
Mike Jolley 2013-12-24 13:31:37 +00:00
parent 33f07a05a8
commit cc7325e869
1 changed files with 1 additions and 1 deletions

View File

@ -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;