Skip to:
Content

BuddyPress.org

Changeset 5743


Ignore:
Timestamp:
02/13/2012 01:27:54 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Add missing maintenance mode functions to bp-core-functions.php.

File:
1 edited

Legend:

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

    r5742 r5743  
    3838 *
    3939 * @since BuddyPress (1.6)
    40  * @uses bp_get_version() To get the BuddyPress version
     40 * @uses bp_get_db_version() To get the BuddyPress version
    4141 */
    4242function bp_db_version() {
     
    5959 *
    6060 * @since BuddyPress (1.6)
    61  * @uses bp_get_version() To get the current BuddyPress version
     61 * @uses bp_get_db_version_raw() To get the current BuddyPress version
    6262 */
    6363function bp_db_version_raw() {
     
    7979       
    8080        return $retval;
     81    }
     82
     83/**
     84 * Output the BuddyPress maintenance mode
     85 *
     86 * @since BuddyPress (1.6)
     87 * @uses bp_get_maintenance_mode() To get the BuddyPress maintenance mode
     88 */
     89function bp_maintenance_mode() {
     90    echo bp_get_maintenance_mode();
     91}
     92    /**
     93     * Return the BuddyPress database version
     94     *
     95     * @since BuddyPress (1.6)
     96     * @global BuddyPress $bp
     97     * @retrun string The BuddyPress maintenance mode
     98     */
     99    function bp_get_maintenance_mode() {
     100        global $bp;
     101        return $bp->maintenance_mode;
    81102    }
    82103
Note: See TracChangeset for help on using the changeset viewer.