Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/27/2012 03:23:41 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Clean up bp-core-hooks.php

File:
1 edited

Legend:

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

    r5836 r5847  
    3737add_action( 'init',                    'bp_init',                   10    );
    3838add_action( 'wp',                      'bp_ready',                  10    );
     39add_action( 'wp_head',                 'bp_head',                   10    );
     40add_action( 'wp_footer',               'bp_footer',                 10    );
    3941add_action( 'setup_theme',             'bp_setup_theme',            10    );
    4042add_action( 'after_theme_setup',       'bp_after_theme_setup',      10    );
     
    4648add_filter( 'map_meta_cap',            'bp_map_meta_caps',          10, 4 );
    4749
    48 // Piggy back WordPress theme actions
    49 add_action( 'wp_head',   'bp_head',   10 );
    50 add_action( 'wp_footer', 'bp_footer', 10 );
    51 
    52 //add_action( 'generate_rewrite_rules', 'bp_generate_rewrite_rules', 10 );
    53 
    5450/**
    5551 * bp_loaded - Attached to 'plugins_loaded' above
     
    9086add_action( 'bp_template_redirect', 'bp_screens', 4 );
    9187
     88// Load the admin
     89if ( is_admin() ) {
     90    add_action( 'bp_loaded', 'bp_admin' );
     91}
     92
    9293/**
    9394 * Plugin Dependency
     
    199200}
    200201
    201 
    202 /** Admin *********************************************************************/
    203 
    204 if ( is_admin() ) {
    205 
    206     /** Actions ***************************************************************/
    207 
    208     add_action( 'bp_loaded',         'bp_admin'                   );
    209     //add_action( 'bp_admin_init',     'bp_admin_settings_help'     );
    210     //add_action( 'admin_menu',        'bp_admin_separator'         );
    211     //add_action( 'custom_menu_order', 'bp_admin_custom_menu_order' );
    212     //add_action( 'menu_order',        'bp_admin_menu_order'        );
    213 
    214     /**
    215      * Run the updater late on 'bp_admin_init' to ensure that all alterations
    216      * to the permalink structure have taken place. This fixes the issue of
    217      * permalinks not being flushed properly when a BuddyPress update occurs.
    218      */
    219     //add_action( 'bp_admin_init',    'bp_setup_updater', 999 );
    220 
    221     /** Filters ***************************************************************/
    222 }
    223 
    224202/** Theme *********************************************************************/
    225203
Note: See TracChangeset for help on using the changeset viewer.