Skip to:
Content

Ticket #5339: 5339.current_comment.patch

File 5339.current_comment.patch, 581 bytes (added by r-a-y, 4 years ago)
  • bp-core/bp-core-theme-compatibility.php

    function bp_theme_compat_reset_post( $args = array() ) { 
    542542        $wp_query->is_archive = $dummy['is_archive'];
    543543        $wp_query->is_tax     = $dummy['is_tax'];
    544544
     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
    545549        // Clean up the dummy post
    546550        unset( $dummy );
    547551