bb_upgrade_1120

The BuddyPress bb upgrade 1120 function.

Description

bb_upgrade_1120(); 

Usage

  1. if ( !function_exists( 'bb_upgrade_1120' ) ) { 
  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_1120(); 
  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_1120() { 
  2. if ( ( $dbv = bb_get_option_from_db( 'bb_db_version' ) ) && $dbv >= 2078 ) { 
  3. return; 
  4.  
  5. // No matter what happens, update the db version 
  6. bb_update_option( 'bb_db_version', 2078 ); 
  7.  
  8. if ( !defined( 'BB_THEME_DIR' ) ) { 
  9. return; 
  10.  
  11. if ( !BB_THEME_DIR ) { 
  12. return; 
  13.  
  14. if ( file_exists( BB_THEME_DIR ) ) { 
  15. return; 
  16.  
  17. // Just suppress errors as this is not critical 
  18. if ( @mkdir( BB_THEME_DIR, 0755 ) ) { 
  19. return 'Making theme directory at ' . BB_THEME_DIR . ': ' . __FUNCTION__; 
  20.  
  21. return;