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() { |
124 | 124 | |
125 | 125 | // Only hook the 'sitewide_notices' overlay if the Sitewide |
126 | 126 | // 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' ) ) { |
128 | 128 | add_action( 'wp_footer', array( $this, 'sitewide_notices' ), 9999 ); |
129 | 129 | } |
130 | 130 | |