Skip to:
Content

BuddyPress.org

Ticket #2521: jeffsayre_2521_core_settings.patch

File jeffsayre_2521_core_settings.patch, 1.1 KB (added by jeffsayre, 14 years ago)

Patch to bp_core_settings.php to make Settings navigation menu work

  • Volumes/Sayre

     
    2424        if ( !is_site_admin() && !(int) $bp->site_options['bp-disable-account-deletion'] )
    2525                bp_core_new_subnav_item( array( 'name' => __( 'Delete Account', 'buddypress' ), 'slug' => 'delete-account', 'parent_url' => $settings_link, 'parent_slug' => $bp->settings->slug, 'screen_function' => 'bp_core_screen_delete_account', 'position' => 90, 'user_has_access' => bp_is_my_profile() ) );
    2626}
    27 add_action( 'wp', 'bp_core_add_settings_nav', 2 );
    28 add_action( 'admin_menu', 'bp_core_add_settings_nav', 2 );
     27add_action( 'bp_setup_nav', 'bp_core_add_settings_nav' );
    2928
    3029/**** GENERAL SETTINGS ****/
    3130