Skip to:
Content

BuddyPress.org

Changeset 13294


Ignore:
Timestamp:
07/06/2022 10:21:31 AM (3 years ago)
Author:
imath
Message:

Remove unnecessary 3rd arg when using bp_is_widget_block_active()

bp_is_widget_block_active() only accepts 2 arguments.

Props oztaser

See #8635

File:
1 edited

Legend:

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

    r13189 r13294  
    125125        // Only hook the 'sitewide_notices' overlay if the Sitewide
    126126        // Notices widget is not in use (to avoid duplicate content).
    127         if ( bp_is_active( 'messages' ) && ! bp_is_widget_block_active( 'bp/sitewide-notices', 'bp_messages_sitewide_notices_widget', true ) ) {
     127        if ( bp_is_active( 'messages' ) && ! bp_is_widget_block_active( 'bp/sitewide-notices', 'bp_messages_sitewide_notices_widget' ) ) {
    128128            add_action( 'wp_footer', array( $this, 'sitewide_notices' ), 9999 );
    129129        }
Note: See TracChangeset for help on using the changeset viewer.