Changeset 11938 for trunk/src/bp-core/bp-core-options.php
- Timestamp:
- 04/02/2018 10:40:59 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-options.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-options.php
r11780 r11938 690 690 691 691 /** 692 * Check whether bbPress plugin-powered Group Forums are enabled.693 *694 * @since 1.6.0695 * @since 3.0.0 $default argument's default value changed from true to false.696 * @deprecated 3.0.0 No longer used in core, but supported for third-party code.697 *698 * @param bool $default Optional. Fallback value if not found in the database.699 * Default: false.700 * @return bool True if group forums are active, otherwise false.701 */702 function bp_is_group_forums_active( $default = false ) {703 $is_active = function_exists( 'bbp_is_group_forums_active' ) ? bbp_is_group_forums_active( $default ) : $default;704 705 /**706 * Filters whether or not bbPress plugin-powered Group Forums are enabled.707 *708 * @since 1.6.0709 * @deprecated 3.0.0 No longer used in core, but supported for third-party code.710 *711 * @param bool $value Whether or not bbPress plugin-powered Group Forums are enabled.712 */713 return (bool) apply_filters( 'bp_is_group_forums_active', $is_active );714 }715 716 /**717 * Check whether Akismet is enabled.718 *719 * @since 1.6.0720 *721 * @param bool $default Optional. Fallback value if not found in the database.722 * Default: true.723 * @return bool True if Akismet is enabled, otherwise false.724 */725 function bp_is_akismet_active( $default = true ) {726 727 /**728 * Filters whether or not Akismet is enabled.729 *730 * @since 1.6.0731 *732 * @param bool $value Whether or not Akismet is enabled.733 */734 return (bool) apply_filters( 'bp_is_akismet_active', (bool) bp_get_option( '_bp_enable_akismet', $default ) );735 }736 737 /**738 692 * Check whether Activity Heartbeat refresh is enabled. 739 693 *
Note: See TracChangeset
for help on using the changeset viewer.