Skip to:
Content

BuddyPress.org

Changeset 636


Ignore:
Timestamp:
12/06/2008 07:41:52 PM (18 years ago)
Author:
apeatling
Message:
  • FIxed "Send Message" button displaying when user is not logged in
  • Fixed "Notifications" settings screen not displaying correctly.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-settings.php

    r513 r636  
    77        bp_core_add_nav_default( 'settings', 'bp_core_screen_general_settings', 'general', false );
    88       
    9         bp_core_add_subnav_item( 'settings', 'general', __('General', 'buddypress'), $bp['loggedin_domain'] . 'settings/', 'bp_core_screen_general_settings', false, false );
    10         bp_core_add_subnav_item( 'settings', 'notifications', __('Notifications', 'buddypress'), $bp['loggedin_domain'] . 'settings/', 'bp_core_screen_notification_settings', false, false );
     9        bp_core_add_subnav_item( 'settings', 'general', __('General', 'buddypress'), $bp['loggedin_domain'] . 'settings/', 'bp_core_screen_general_settings', false, bp_is_home() );
     10        bp_core_add_subnav_item( 'settings', 'notifications', __('Notifications', 'buddypress'), $bp['loggedin_domain'] . 'settings/', 'bp_core_screen_notification_settings', false, bp_is_home() );
    1111}
    1212add_action( 'wp', 'bp_core_add_settings_nav', 2 );
  • trunk/bp-messages/bp-messages-templatetags.php

    r633 r636  
    310310        global $bp;
    311311       
    312         if ( bp_is_home() )
     312        if ( bp_is_home() || !is_user_logged_in() )
    313313                return false;
    314314       
Note: See TracChangeset for help on using the changeset viewer.