Skip to:
Content

BuddyPress.org

Changeset 11781


Ignore:
Timestamp:
01/02/2018 03:12:36 PM (4 years ago)
Author:
djpaul
Message:

Groups: reinstate bp_is_group_forum() function.

This has been reinstated for compatibility with themes that may have customised bp-legacy's
/buddypress/groups/single/home.php template. The function has been modified to always return false.

See #5351

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-template.php

    r11766 r11781  
    26992699function bp_is_group_admin_page() {
    27002700    return (bool) ( bp_is_single_item() && bp_is_groups_component() && bp_is_current_action( 'admin' ) );
     2701}
     2702
     2703/**
     2704 * Is the current page a group's (legacy bbPress) forum page?
     2705 *
     2706 * @since 1.1.0
     2707 * @since 3.0.0 Always returns false.
     2708 * @deprecated 3.0.0 No longer used in core, but supported for custom theme templates.
     2709 *
     2710 * @return bool
     2711 */
     2712function bp_is_group_forum() {
     2713    return false;
    27012714}
    27022715
Note: See TracChangeset for help on using the changeset viewer.