buddypress/bp-blogs/bp-blogs-ajax.php
Andy Peatling 7b4eb3960a Removed blogs, groups and members directory from the home theme into the BuddyPress member theme. The directories now have their own templates and theme based CSS and provide much easier editing.
Moved the $bp global setup to a higher priority action - from the 'wp' action to the 'plugins_loaded' action. This stops occurrences where the $bp global was not defined yet.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@1250 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2009-03-25 16:01:43 +00:00

12 lines
No EOL
255 B
PHP

<?php
function bp_blogs_ajax_directory_blogs() {
global $bp;
check_ajax_referer('directory_blogs');
load_template( TEMPLATEPATH . '/directories/blogs/blogs-loop.php' );
}
add_action( 'wp_ajax_directory_blogs', 'bp_blogs_ajax_directory_blogs' );
?>