Ticket #5549: 5549.02.patch
| File 5549.02.patch, 896 bytes (added by , 12 years ago) |
|---|
-
bp-xprofile/bp-xprofile-loader.php
215 215 } 216 216 217 217 // 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() ) { 219 220 220 221 // Get the settings slug 221 222 $settings_slug = bp_get_settings_slug(); … … 329 330 * @return array 330 331 */ 331 332 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 332 338 // Setup the logged in user variables 333 339 $settings_link = trailingslashit( bp_loggedin_user_domain() . bp_get_settings_slug() ); 334 340