/**
 * Setup the bbPress updater
 *
 * @since bbPress (r3419)
 *
 * @uses bbp_version_updater()
 * @uses bbp_version_bump()
 * @uses flush_rewrite_rules()
 */
function bbp_setup_updater()
{
    // Bail if no update needed
    if (!bbp_is_update()) {
        return;
    }
    // Call the automated updater
    bbp_version_updater();
}
Esempio n. 2
0
/**
 * Setup the bbPress updater
 *
 * @since bbPress (r3419)
 *
 * @uses bbp_version_bump()
 * @uses bbp_deactivation()
 * @uses bbp_activation()
 */
function bbp_setup_updater()
{
    // Are we running an outdated version of bbPress?
    if (bbp_is_update()) {
        // Call the automated updater
        bbp_version_updater();
        // Bump the version
        bbp_version_bump();
        // Run the deactivation function to wipe roles, caps, and rewrite rules
        bbp_deactivation();
        // Run the activation function to reset roles, caps, and rewrite rules
        bbp_activation();
    }
}