Ticket #5339: 5339.current_comment.patch
File 5339.current_comment.patch, 581 bytes (added by , 10 years ago) |
---|
-
bp-core/bp-core-theme-compatibility.php
function bp_theme_compat_reset_post( $args = array() ) { 542 542 $wp_query->is_archive = $dummy['is_archive']; 543 543 $wp_query->is_tax = $dummy['is_tax']; 544 544 545 // Force have_comments() to return false by making sure the current_comment 546 // is greater than the comment_count 547 $wp_query->current_comment = 9999; 548 545 549 // Clean up the dummy post 546 550 unset( $dummy ); 547 551