bb_upgrade_1030

The BuddyPress bb upgrade 1030 function.

Description

bb_upgrade_1030(); 

Usage

  1. if ( !function_exists( 'bb_upgrade_1030' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-admin/includes/functions.bb-upgrade.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bb_upgrade_1030(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-forums/bbpress/bb-admin/includes/functions.bb-upgrade.php  
  1. function bb_upgrade_1030() { 
  2. if ( ( $dbv = bb_get_option_from_db( 'bb_db_version' ) ) && $dbv >= 1058 ) 
  3. return; 
  4.  
  5. $admin_email = bb_get_option('admin_email'); 
  6. if ($admin_email) { 
  7. bb_update_option('from_email', $admin_email); 
  8. bb_delete_option('admin_email'); 
  9.  
  10. bb_update_option( 'bb_db_version', 1058 ); 
  11.  
  12. return 'Done moving admin_email to from_email: ' . __FUNCTION__;