Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/12/2012 07:58:09 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Move bp_head() and bp_footer() actions into bp-core-hooks.php, and piggy back them onto wp_head() and wp_footer(). Also add some missing semi-colons in header.php and footer.php.

File:
1 edited

Legend:

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

    r5524 r5736  
    6868add_action( 'bp_ready', 'bp_screens', 4 );
    6969
     70/** Theme *********************************************************************/
     71
     72// Piggy back WordPress theme actions
     73add_action( 'wp_head',   'bp_head'   );
     74add_action( 'wp_footer', 'bp_footer' );
     75
    7076/** Admin Bar *****************************************************************/
    7177
    7278// Setup the navigation menu
    73 add_action( 'admin_bar_menu', 'bp_setup_admin_bar',      11 );
     79add_action( 'admin_bar_menu', 'bp_setup_admin_bar', 11 );
    7480
    7581/** The hooks *****************************************************************/
     
    217223}
    218224
     225/** Theme *********************************************************************/
     226
     227/**
     228 * Piggy-back action for BuddyPress specific <head> actions in a theme
     229 *
     230 * @since BuddyPress (1.6)
     231 *
     232 * @uses do_action() Calls 'bp_head' hook
     233 */
     234function bp_head() {
     235    do_action( 'bp_head' );
     236}
     237
     238/**
     239 * Piggy-back action for BuddyPress specific footer actions in a theme
     240 *
     241 * @since BuddyPress (1.6)
     242 *
     243 * @uses do_action() Calls 'bp_footer' hook
     244 */
     245function bp_footer() {
     246    do_action( 'bp_footer' );
     247}
     248
    219249?>
Note: See TracChangeset for help on using the changeset viewer.