Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/09/2011 07:24:36 PM (14 years ago)
Author:
boonebgorges
Message:

Introduces bp_use_wp_admin_bar() to reduce BP_USE_WP_ADMIN_BAR checks throughout BP. See #3314

File:
1 edited

Legend:

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

    r4630 r4631  
    12351235}
    12361236
     1237/**
     1238 * Should we use the WP admin bar?
     1239 *
     1240 * The WP Admin Bar, introduced in WP 3.1, is fully supported in BuddyPress as of BP 1.3.
     1241 *
     1242 * For the BP 1.3 development cycle, the BuddyBar will remain the default navigation for BP
     1243 * installations. In the future, this behavior will be changed, so that the WP Admin Bar is the
     1244 * default.
     1245 *
     1246 * @package BuddyPress
     1247 * @since 1.3
     1248 *
     1249 * @uses apply_filters() Filter 'bp_use_wp_admin_bar' to alter
     1250 * @return bool False when WP Admin Bar support is disabled (default); true when enabled
     1251 */
     1252function bp_use_wp_admin_bar() {
     1253    return apply_filters( 'bp_use_wp_admin_bar', defined( 'BP_USE_WP_ADMIN_BAR' ) && BP_USE_WP_ADMIN_BAR );
     1254}
     1255
    12371256/** Global Manipulators *******************************************************/
    12381257
Note: See TracChangeset for help on using the changeset viewer.