Skip to:
Content

bbPress.org

Changeset 3791


Ignore:
Timestamp:
03/04/2012 01:05:09 AM (10 years ago)
Author:
johnjamesjacoby
Message:

Introduce bbp_get_config_location() function to look for previous BuddyPress integration. See #1669.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-core-options.php

    r3776 r3791  
    533533}
    534534
     535/** Legacy *******************************************************************/
     536
     537/**
     538 * Checks if there is a previous BuddyPress Forum configuration
     539 *
     540 * @since bbPress (r3790)
     541 *
     542 * @param $default string Optional. Default empty string
     543 *
     544 * @uses get_option() To get the old bb-config.php location
     545 * @return string The location of the bb-config.php file, if any
     546 */
     547function bbp_get_config_location( $default = '' ) {
     548    return apply_filters( 'bbp_get_config_location', get_option( 'bb-config-location', $default ) );
     549}
     550
    535551?>
Note: See TracChangeset for help on using the changeset viewer.