Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/13/2012 05:04:53 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Bump default DB version in bp-core-options.php. Use bp_bump_version() where needed. Update activation/deactivation hooks, and prevent activation error from function not existing. Fixes #3967.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-update.php

    r5745 r5754  
    144144}
    145145
     146/** Activation Actions ********************************************************/
     147
     148/**
     149 * Runs on BuddyPress activation
     150 *
     151 * @since BuddyPress (1.6)
     152 *
     153 * @uses do_action() Calls 'bp_activation' hook
     154 */
     155function bp_activation() {
     156
     157    // Force refresh theme roots.
     158    delete_site_transient( 'theme_roots' );
     159
     160    // Use as of (1.6)
     161    do_action( 'bp_activation' );
     162
     163    // @deprecated as of (1.6)
     164    do_action( 'bp_loader_activate' );
     165}
     166
     167/**
     168 * Runs on BuddyPress deactivation
     169 *
     170 * @since BuddyPress (1.6)
     171 *
     172 * @uses do_action() Calls 'bp_deactivation' hook
     173 */
     174function bp_deactivation() {
     175
     176    // Force refresh theme roots.
     177    delete_site_transient( 'theme_roots' );
     178
     179    // Use as of (1.6)
     180    do_action( 'bp_deactivation' );
     181
     182    // @deprecated as of (1.6)
     183    do_action( 'bp_loader_deactivate' );
     184}
     185
     186/**
     187 * Runs when uninstalling BuddyPress
     188 *
     189 * @since BuddyPress (1.6)
     190 *
     191 * @uses do_action() Calls 'bp_uninstall' hook
     192 */
     193function bp_uninstall() {
     194    do_action( 'bp_uninstall' );
     195}
     196
    146197?>
Note: See TracChangeset for help on using the changeset viewer.