Skip to:
Content

BuddyPress.org

Ticket #8635: 8635.2.diff

File 8635.2.diff, 810 bytes (added by oztaser, 3 years ago)

bp_is_widget_block_active expecting 2 arguments, not 3

  • src/bp-templates/bp-legacy/buddypress-functions.php

    diff --git a/src/bp-templates/bp-legacy/buddypress-functions.php b/src/bp-templates/bp-legacy/buddypress-functions.php
    index dd9ca60bd..3ab73f097 100644
    a b protected function setup_actions() { 
    124124
    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                }
    130130