diff --git bp-notifications/bp-notifications-loader.php bp-notifications/bp-notifications-loader.php
index 20445d6..8bea5d4 100644
|
|
class BP_Notifications_Component extends BP_Component { |
103 | 103 | */ |
104 | 104 | public function setup_nav( $main_nav = array(), $sub_nav = array() ) { |
105 | 105 | |
| 106 | // Don't add to navigation if templates are not found (legacy themes) |
| 107 | if ( ! bp_use_theme_compat_with_current_theme() && ! locate_template( array( 'members/single/notifications.php' ) ) ) { |
| 108 | return; |
| 109 | } |
| 110 | |
106 | 111 | // Add 'Notifications' to the main navigation |
107 | 112 | $count = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ); |
108 | 113 | $main_nav = array( |