Changeset 8602
- Timestamp:
- 07/12/2014 12:49:05 AM (10 years ago)
- Location:
- trunk/src/bp-core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-options.php
r8568 r8602 519 519 function bp_restrict_group_creation( $default = true ) { 520 520 return (bool) apply_filters( 'bp_restrict_group_creation', (bool) bp_get_option( 'bp_restrict_group_creation', $default ) ); 521 } 522 523 /** 524 * Should the old BuddyBar be forced in place of the WP admin bar? 525 * 526 * @since BuddyPress (1.6.0) 527 * 528 * @uses bp_get_option() To get the BuddyBar option. 529 * 530 * @param bool $default Optional. Fallback value if not found in the database. 531 * Default: true. 532 * @return bool True if the BuddyBar should be forced on, otherwise false. 533 */ 534 function bp_force_buddybar( $default = true ) { 535 return (bool) apply_filters( 'bp_force_buddybar', (bool) bp_get_option( '_bp_force_buddybar', $default ) ); 521 536 } 522 537 -
trunk/src/bp-core/deprecated/2.1.php
r8568 r8602 360 360 } 361 361 add_action( 'bp_init', 'bp_core_load_buddybar_css' ); 362 363 /**364 * Should the old BuddyBar be forced in place of the WP admin bar?365 *366 * @since BuddyPress (1.6.0)367 * @deprecated BuddyPress (2.1.0)368 *369 * @uses bp_get_option() To get the BuddyBar option.370 *371 * @param bool $default Optional. Fallback value if not found in the database.372 * Default: true.373 * @return bool True if the BuddyBar should be forced on, otherwise false.374 */375 function bp_force_buddybar( $default = true ) {376 return (bool) apply_filters( 'bp_force_buddybar', (bool) bp_get_option( '_bp_force_buddybar', $default ) );377 }378 362 379 363 /**
Note: See TracChangeset
for help on using the changeset viewer.