mirror of
https://gh.wpcy.net/https://github.com/buddypress/buddypress.git
synced 2026-06-01 05:28:27 +08:00
In Users Administration Screen, a new view is now available to manage the pending accounts of a site or of the network of sites. The following actions are supported: - Resend the activation email - Delete the pending account - Activate the pending account The corresponding bulk actions are also supported. A search box is available in order to let the administrator easily find some specific pending accounts. The registration process have also been modified so that multisite and regular configs handles it in a similar way. A mechnanism is in place to ensure plugin backward compatibility concerning the regular configs. See #5374 props boonebgorges, imath Fixes #4651 git-svn-id: https://buddypress.svn.wordpress.org/trunk@8119 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
47 lines
1.4 KiB
PHP
47 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* Installs BuddyPress for the purpose of the unit-tests
|
|
*
|
|
* @todo Reuse the init/load code in init.php
|
|
* @todo Support MULTIBLOG
|
|
*/
|
|
error_reporting( E_ALL & ~E_DEPRECATED & ~E_STRICT );
|
|
|
|
$config_file_path = $argv[1];
|
|
$tests_dir_path = $argv[2];
|
|
$multisite = ! empty( $argv[3] );
|
|
|
|
require_once $config_file_path;
|
|
require_once $tests_dir_path . '/includes/functions.php';
|
|
|
|
function _load_buddypress() {
|
|
require dirname( dirname( dirname( __FILE__ ) ) ) . '/bp-loader.php';
|
|
}
|
|
tests_add_filter( 'muplugins_loaded', '_load_buddypress' );
|
|
|
|
define( 'BP_PLUGIN_DIR', dirname( dirname( dirname( __FILE__ ) ) ) . '/' );
|
|
define( 'BP_ROOT_BLOG', 1 );
|
|
|
|
// Always load admin bar
|
|
tests_add_filter( 'show_admin_bar', '__return_true' );
|
|
|
|
function wp_test_bp_install( $value ) {
|
|
return array( 'activity' => 1, 'blogs' => 1, 'friends' => 1, 'groups' => 1, 'members' => 1, 'messages' => 1, 'notifications' => 1, 'settings' => 1, 'xprofile' => 1, );
|
|
}
|
|
tests_add_filter( 'bp_new_install_default_components', 'wp_test_bp_install' );
|
|
|
|
tests_add_filter( 'bp_get_signup_allowed', '__return_true' );
|
|
|
|
$_SERVER['SERVER_PROTOCOL'] = 'HTTP/1.1';
|
|
$_SERVER['HTTP_HOST'] = WP_TESTS_DOMAIN;
|
|
$PHP_SELF = $GLOBALS['PHP_SELF'] = $_SERVER['PHP_SELF'] = '/index.php';
|
|
|
|
require_once ABSPATH . '/wp-settings.php';
|
|
|
|
echo "Installing BuddyPress...\n";
|
|
|
|
$wpdb->query( 'SET storage_engine = INNODB' );
|
|
$wpdb->select( DB_NAME, $wpdb->dbh );
|
|
|
|
// Install BuddyPress
|
|
bp_version_updater();
|