Skip to:
Content

BuddyPress.org

Ticket #1237: patch.diff

File patch.diff, 1.4 KB (added by petronic, 15 years ago)
  • bp-friends.php

     
    8989       
    9090        do_action( 'friends_setup_nav' );
    9191}
    92 add_action( 'wp', 'friends_setup_nav', 2 );
    93 add_action( 'admin_menu', 'friends_setup_nav', 2 );
     92add_action( 'plugins_loaded', 'friends_setup_nav' );
     93add_action( 'admin_menu', 'friends_setup_nav' );
    9494
    9595
    9696/********************************************************************************
  • bp-core/bp-core-settings.php

     
    2424        if ( !is_site_admin() && !(int) get_site_option( '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_home() ) );
    2626}
    27 add_action( 'wp', 'bp_core_add_settings_nav', 2 );
    28 add_action( 'admin_menu', 'bp_core_add_settings_nav', 2 );
     27add_action( 'plugins_loaded', 'bp_core_add_settings_nav' );
     28add_action( 'admin_menu', 'bp_core_add_settings_nav' );
    2929
    3030/**** GENERAL SETTINGS ****/
    3131