Skip to:
Content

Ticket #6153: 6153.01.patch

File 6153.01.patch, 763 bytes (added by r-a-y, 3 years ago)
  • src/bp-core/bp-core-theme-compatibility.php

     
    848848function bp_theme_compat_toggle_is_page( $retval = '' ) { 
    849849        global $wp_query; 
    850850 
    851         $wp_query->is_single = false; 
    852         $wp_query->is_page   = false; 
     851        $wp_query->is_page = false; 
    853852 
    854853        // Set a switch so we know that we've toggled these WP_Query properties 
    855854        buddypress()->theme_compat->is_page_toggled = true; 
     
    877876        } 
    878877 
    879878        // Revert our toggled WP_Query properties 
    880         $query->is_single = true; 
    881         $query->is_page   = true; 
     879        $query->is_page = true; 
    882880 
    883881        // Unset our switch 
    884882        unset( $bp->theme_compat->is_page_toggled );