buddypress/bp-loader.php
John James Jacoby 63c7dcf355 Bump 2.2 branch version to 2.2.3
git-svn-id: https://buddypress.svn.wordpress.org/branches/2.2@9776 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2015-04-20 18:44:28 +00:00

54 lines
1.5 KiB
PHP

<?php
/**
* The BuddyPress Plugin
*
* BuddyPress is social networking software with a twist from the creators of WordPress.
*
* @package BuddyPress
* @subpackage Main
*/
/**
* Plugin Name: BuddyPress
* Plugin URI: http://buddypress.org
* Description: BuddyPress helps you run any kind of social network on your WordPress, with member profiles, activity streams, user groups, messaging, and more.
* Author: The BuddyPress Community
* Author URI: http://buddypress.org
* Version: 2.2.3
* Text Domain: buddypress
* Domain Path: /bp-languages/
* License: GPLv2 or later (license.txt)
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;
// Assume you want to load from build
$bp_loader = dirname( __FILE__ ) . '/build/bp-loader.php';
// Load from source if no build exists
if ( ! file_exists( $bp_loader ) || defined( 'BP_LOAD_SOURCE' ) ) {
$bp_loader = dirname( __FILE__ ) . '/src/bp-loader.php';
$subdir = 'src';
} else {
$subdir = 'build';
}
// Set source subdirectory
define( 'BP_SOURCE_SUBDIRECTORY', $subdir );
// Define overrides - only applicable to those running trunk
if ( ! defined( 'BP_PLUGIN_DIR' ) ) {
define( 'BP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
}
if ( ! defined( 'BP_PLUGIN_URL' ) ) {
// Be nice to symlinked directories
define( 'BP_PLUGIN_URL', plugins_url( trailingslashit( basename( constant( 'BP_PLUGIN_DIR' ) ) ) ) );
}
// Include BuddyPress
include( $bp_loader );
// Unset the loader, since it's loaded in global scope
unset( $bp_loader );