Skip to:
Content

BuddyPress.org

Ticket #5299: 5299.02.patch

File 5299.02.patch, 761 bytes (added by boonebgorges, 10 years ago)
  • bp-notifications/bp-notifications-loader.php

    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 { 
    103103         */
    104104        public function setup_nav( $main_nav = array(), $sub_nav = array() ) {
    105105
     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
    106111                // Add 'Notifications' to the main navigation
    107112                $count    = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() );
    108113                $main_nav = array(