Changeset 14041
- Timestamp:
- 10/08/2024 10:55:02 PM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-notifications.php
r13799 r14041 143 143 */ 144 144 function bp_members_invitations_accepted_invitation_notification( $invite, $new_user, $inviter_id ) { 145 if ( ! bp_is_active( 'notifications' ) ) { 146 return; 147 } 145 148 146 149 // Notify all inviters. … … 183 186 */ 184 187 function bp_members_mark_read_accepted_invitation_notification() { 185 if ( false === is_singular() || false === is_user_logged_in() || ! bp_is_user() || empty( $_GET['welcome'] ) ) {188 if ( false === is_singular() || false === is_user_logged_in() || ! bp_is_user() || empty( $_GET['welcome'] ) || ! bp_is_active( 'notifications' ) ) { 186 189 return; 187 190 } … … 209 212 210 213 $signup_screens = array( 'users_page_bp-signups', 'users_page_bp-signups-network' ); 211 if ( ! wp_doing_ajax() && in_array( get_current_screen()->base, $signup_screens, true ) && ! empty( $_GET['mod_req'] ) && ! empty( $_GET['signup_id'] ) ) {214 if ( ! wp_doing_ajax() && in_array( get_current_screen()->base, $signup_screens, true ) && ! empty( $_GET['mod_req'] ) && ! empty( $_GET['signup_id'] ) && bp_is_active( 'notifications' ) ) { 212 215 // Mark all notifications about this request as read. 213 216 BP_Notifications_Notification::update(
Note: See TracChangeset
for help on using the changeset viewer.