Changeset 7578 for trunk/bp-notifications/bp-notifications-template.php
- Timestamp:
- 11/16/2013 01:08:49 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-notifications/bp-notifications-template.php
r7559 r7578 691 691 $notification = $bp->notifications->query_loop->notification; 692 692 693 // Skip inactive components694 if ( ! bp_is_active( $notification->component_name ) ) {695 return;696 }697 698 693 // Callback function exists 699 694 if ( isset( $bp->{ $notification->component_name }->notification_callback ) && is_callable( $bp->{ $notification->component_name }->notification_callback ) ) { … … 703 698 } elseif ( isset( $bp->{ $notification->component_name }->format_notification_function ) && function_exists( $bp->{ $notification->component_name }->format_notification_function ) ) { 704 699 $description = call_user_func( $bp->{ $notification->component_name }->format_notification_function, $notification->component_action, $notification->item_id, $notification->secondary_item_id, 1 ); 700 701 // Allow non BuddyPress components to hook in 702 } else { 703 $description = apply_filters_ref_array( 'bp_notifications_get_notifications_for_user', array( $notification->component_action, $notification->item_id, $notification->secondary_item_id, 1 ) ); 705 704 } 706 705
Note: See TracChangeset
for help on using the changeset viewer.