Skip to:
Content

BuddyPress.org

Changeset 5742


Ignore:
Timestamp:
02/13/2012 12:44:31 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Add missing raw DB version functions to bp-core-functions.php.

File:
1 edited

Legend:

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

    r5729 r5742  
    5353        global $bp;
    5454        return $bp->db_version;
     55    }
     56
     57/**
     58 * Output the BuddyPress database version
     59 *
     60 * @since BuddyPress (1.6)
     61 * @uses bp_get_version() To get the current BuddyPress version
     62 */
     63function bp_db_version_raw() {
     64    echo bp_get_db_version_raw();
     65}
     66    /**
     67     * Return the BuddyPress database version
     68     *
     69     * @since BuddyPress (1.6)
     70     * @global BuddyPress $bp
     71     * @retrun string The BuddyPress version direct from the database
     72     */
     73    function bp_get_db_version_raw() {
     74        global $bp;
     75
     76        $retval = 0;
     77        if ( !empty( $bp->db_version_raw ) )
     78            $retval = $bp->db_version_raw;
     79       
     80        return $retval;
    5581    }
    5682
Note: See TracChangeset for help on using the changeset viewer.