Changeset 36138
- Timestamp:
- 12/31/2015 05:15:23 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 3 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 AND comment_approved = '1'"; 3197 3197 $cgroupby = ''; 3198 3198 } -
trunk/tests/phpunit/tests/query/conditionals.php
r35679 r36138 56 56 $this->go_to( get_post_comments_feed_link( $post_id ) ); 57 57 $this->assertQueryTrue('is_feed', 'is_single', 'is_singular', 'is_comment_feed'); 58 59 60 61 62 63 64 58 65 } 59 66 -
trunk/tests/phpunit/tests/query/results.php
r35242 r36138 704 704 $this->assertCount( 0, $result2 ); 705 705 } 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 706 721 }
Note: See TracChangeset
for help on using the changeset viewer.