Skip to:
Content

BuddyPress.org

Ticket #3540: 3540.01.patch

File 3540.01.patch, 797 bytes (added by boonebgorges, 13 years ago)
  • bp-themes/bp-default/_inc/ajax.php

    add_filter( 'bp_ajax_querystring', 'bp_dtheme_ajax_querystring', 10, 2 ); 
    8383
    8484/* This function will simply load the template loop for the current object. On an AJAX request */
    8585function bp_dtheme_object_template_loader() {
     86        // AJAX requests happen too early to be picked up by the normal bp_update_is_directory()
     87        // calls, so we have to do it manually here
     88        if ( !bp_current_action() )
     89                bp_update_is_directory( true, bp_current_component() );
     90
    8691        $object = esc_attr( $_POST['object'] );
    8792        locate_template( array( "$object/$object-loop.php" ), true );
    8893}