Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/02/2018 01:04:42 PM (7 years ago)
Author:
djpaul
Message:

Groups: reinstate functions bp_is_group_forums_active(), bp_group_new_topic_button(), bp_get_group_new_topic_button().

The first function has been reinstated for compatibility with third-party plugins, "BuddyPress for Sensei" and "BuddyPress for LearnDash".

The latter two functions rendered a "new topic" button on a Group screen.
Current proposal is that bbPress is updated to add this back, because otherwise we have to make assumptions about bbPress' permalinks, or rely on calling a bbPress function (which feels conceptually wrong from an integration perspective).

Also fix a PHP Notice caused by an incomplete prior removal of bp_group_new_topic_button() (see bp-legacy/buddypress-functions.php).

See #5351

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress-functions.php

    r11776 r11780  
    107107            if ( bp_is_active( 'groups' ) ) {
    108108                add_action( 'bp_group_header_actions',          'bp_group_join_button',               5           );
    109                 add_action( 'bp_group_header_actions',          'bp_group_new_topic_button',         20           );
    110109                add_action( 'bp_directory_groups_actions',      'bp_group_join_button'                            );
    111110                add_action( 'bp_groups_directory_group_filter', 'bp_legacy_theme_group_create_nav', 999           );
Note: See TracChangeset for help on using the changeset viewer.