Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/12/2011 09:25:51 PM (13 years ago)
Author:
djpaul
Message:

Swap function_exists checks to bp_is_active. Fixes #2718

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-screens.php

    r4124 r4137  
    312312        } else {
    313313            // Posting a topic
    314             if ( isset( $_POST['submit_topic'] ) && function_exists( 'bp_forums_new_topic') ) {
     314            if ( isset( $_POST['submit_topic'] ) && bp_is_active( 'forums' ) ) {
    315315                // Check the nonce
    316316                check_admin_referer( 'bp_forums_new_topic' );
Note: See TracChangeset for help on using the changeset viewer.