1
0
Fork 0
mirror of https://github.com/buddypress/buddypress.git synced 2026-07-20 19:56:12 +08:00
buddypress/bp-loader.php
Renato Alves d4932d1123 Raise the minimum supported WordPress and PHP versions.
The new minimum WordPress version supported is 6.4.
The new minimum PHP version supported is 7.0.

Props imath.
Fixes #9225

git-svn-id: https://buddypress.svn.wordpress.org/trunk@14014 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2024-09-02 22:45:11 +00:00

57 lines
1.6 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: https://buddypress.org
* Description: BuddyPress adds community features to WordPress. Member Profiles, Activity Streams, Direct Messaging, Notifications, and more!
* Author: The BuddyPress Community
* Author URI: https://buddypress.org
* License: GNU General Public License v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: buddypress
* Domain Path: /bp-languages/
* Requires PHP: 7.0
* Requires at least: 6.4
* Version: 15.0.0-alpha
*/
// Exit if accessed directly
defined( 'ABSPATH' ) || exit;
// Assume you want to load from build
$bp_loader = __DIR__ . '/build/bp-loader.php';
// Load from source if no build exists
if ( ! file_exists( $bp_loader ) || defined( 'BP_LOAD_SOURCE' ) ) {
$bp_loader = __DIR__ . '/src/bp-loader.php';
$bp_subdir = 'src';
} else {
$bp_subdir = 'build';
}
// Set source subdirectory
define( 'BP_SOURCE_SUBDIRECTORY', $bp_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
require $bp_loader;
// Unset vars that were invoked in global scope
unset( $bp_loader, $bp_subdir );