Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
BuddyPress::versions()
Private method to align the active and database versions.
Source Source
File: class-buddypress.php
private function versions() { // Get the possible DB versions (boy is this gross). $versions = array(); $versions['1.6-single'] = get_blog_option( $this->root_blog_id, '_bp_db_version' ); // 1.6-single exists, so trust it. if ( !empty( $versions['1.6-single'] ) ) { $this->db_version_raw = (int) $versions['1.6-single']; // If no 1.6-single exists, use the max of the others. } else { $versions['1.2'] = get_site_option( 'bp-core-db-version' ); $versions['1.5-multi'] = get_site_option( 'bp-db-version' ); $versions['1.6-multi'] = get_site_option( '_bp_db_version' ); $versions['1.5-single'] = get_blog_option( $this->root_blog_id, 'bp-db-version' ); // Remove empty array items. $versions = array_filter( $versions ); $this->db_version_raw = (int) ( !empty( $versions ) ) ? (int) max( $versions ) : 0; } }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
1.7.0 | Introduced. |