Skip to:
Content

BuddyPress.org

Changeset 11092


Ignore:
Timestamp:
09/13/2016 03:59:44 PM (3 years ago)
Author:
boonebgorges
Message:

Theme Compat: Only set is_page back to true after a loop if it was true to begin with.

Fixes #7253.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-theme-compatibility.php

    r10899 r11092  
    958958    global $wp_query;
    959959
    960     $wp_query->is_page = false;
    961 
    962     // Set a switch so we know that we've toggled these WP_Query properties.
    963     buddypress()->theme_compat->is_page_toggled = true;
     960    if ( $wp_query->is_page ) {
     961        $wp_query->is_page = false;
     962
     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;
Note: See TracChangeset for help on using the changeset viewer.