Skip to:
Content

BuddyPress.org

Ticket #5549: 5549.02.patch

File 5549.02.patch, 896 bytes (added by r-a-y, 12 years ago)

Attached patch only adds the "Settings > Profile" subnav item if the theme isn't bp-default

  • bp-xprofile/bp-xprofile-loader.php

     
    215215                }
    216216
    217217                // Privacy Settings
    218                 if ( bp_is_active( 'settings' ) ) {
     218                // Only add this item for themes that are not bp-default
     219                if ( bp_is_active( 'settings' ) && bp_use_theme_compat_with_current_theme() ) {
    219220
    220221                        // Get the settings slug
    221222                        $settings_slug = bp_get_settings_slug();
     
    329330         * @return array
    330331         */
    331332        public function setup_settings_admin_nav( $wp_admin_nav ) {
     333                // Don't add the "Settings > Profile" subnav item if on bp-default
     334                if ( ! bp_use_theme_compat_with_current_theme() ) {
     335                        return $wp_admin_nav;
     336                }
     337
    332338                // Setup the logged in user variables
    333339                $settings_link = trailingslashit( bp_loggedin_user_domain() . bp_get_settings_slug() );
    334340