mirror of
https://gh.wpcy.net/https://github.com/buddypress/buddypress.git
synced 2026-05-31 05:04:29 +08:00
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
12 lines
No EOL
255 B
PHP
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' );
|
|
|
|
|
|
?>
|