bbp_is_update

Compare the bbPress version to the DB version to determine if updating.

Description

bbp_is_update(); 

Usage

  1. if ( !function_exists( 'bbp_is_update' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/core/update.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_is_update(); 
  7.  

Defined (1)

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

/includes/core/update.php  
  1. function bbp_is_update() { 
  2. $raw = (int) bbp_get_db_version_raw(); 
  3. $cur = (int) bbp_get_db_version(); 
  4. $retval = (bool) ( $raw < $cur ); 
  5. return $retval;