Skip to:
Content

BuddyPress.org

Ticket #7253: 7253.diff

File 7253.diff, 759 bytes (added by boonebgorges, 5 years ago)
  • src/bp-core/bp-core-theme-compatibility.php

    diff --git src/bp-core/bp-core-theme-compatibility.php src/bp-core/bp-core-theme-compatibility.php
    index ea83317..117d158 100644
    function bp_comments_open( $open, $post_id = 0 ) { 
    957957function bp_theme_compat_toggle_is_page( $retval = '' ) {
    958958        global $wp_query;
    959959
    960         $wp_query->is_page = false;
     960        if ( $wp_query->is_page ) {
     961                $wp_query->is_page = false;
    961962
    962         // Set a switch so we know that we've toggled these WP_Query properties.
    963         buddypress()->theme_compat->is_page_toggled = true;
     963                // Set a switch so we know that we've toggled these WP_Query properties.
     964                buddypress()->theme_compat->is_page_toggled = true;
     965        }
    964966
    965967        return $retval;
    966968}