Skip to:
Content

BuddyPress.org

Changeset 11958


Ignore:
Timestamp:
04/05/2018 05:40:20 PM (8 years ago)
Author:
r-a-y
Message:

Activity: After r11957, bring back bp_is_active() check for embeds.

The bp_is_active() check is meant for developers to disable activity
embeds if they do not want that feature enabled on their site.

See #7618.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/classes/class-bp-activity-component.php

    r11957 r11958  
    7373
    7474                // Embeds
    75                 $includes[] = 'embeds';
     75                if ( bp_is_active( $this->id, 'embeds' ) ) {
     76                        $includes[] = 'embeds';
     77                }
    7678
    7779                if ( is_admin() ) {
Note: See TracChangeset for help on using the changeset viewer.