Ticket #3540: 3540.01.patch
File 3540.01.patch, 797 bytes (added by , 13 years ago) |
---|
-
bp-themes/bp-default/_inc/ajax.php
add_filter( 'bp_ajax_querystring', 'bp_dtheme_ajax_querystring', 10, 2 ); 83 83 84 84 /* This function will simply load the template loop for the current object. On an AJAX request */ 85 85 function 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 86 91 $object = esc_attr( $_POST['object'] ); 87 92 locate_template( array( "$object/$object-loop.php" ), true ); 88 93 }