Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
07/13/2012 01:20:13 PM (14 years ago)
Author:
boonebgorges
Message:

Reverts piggybacking of bp_head and bp_footer actions from r5736.

Moving the bp_head and bp_footer actions outside of the template, and
piggybacking them on WP core actions, causes problems for backward
compatibility with themes that have mimicked BP's previous behavior of
hardcoding the actions.

Fixes #4339

File:
1 edited

Legend:

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

    r6080 r6177  
    3535add_action( 'init',                    'bp_init',                   10    );
    3636add_action( 'wp',                      'bp_ready',                  10    );
    37 add_action( 'wp_head',                 'bp_head',                   10    );
    38 add_action( 'wp_footer',               'bp_footer',                 10    );
    3937add_action( 'setup_theme',             'bp_setup_theme',            10    );
    4038add_action( 'after_theme_setup',       'bp_after_theme_setup',      10    );
    … …  
    202200
    203201/**
    204  * Piggy-back action for BuddyPress specific <head> actions in a theme
    205  *
    206  * @since BuddyPress (1.6)
    207  *
    208  * @uses do_action() Calls 'bp_head' hook
    209  */
    210 function bp_head() {
    211         do_action( 'bp_head' );
    212 }
    213 
    214 /**
    215  * Piggy-back action for BuddyPress specific footer actions in a theme
    216  *
    217  * @since BuddyPress (1.6)
    218  *
    219  * @uses do_action() Calls 'bp_footer' hook
    220  */
    221 function bp_footer() {
    222         do_action( 'bp_footer' );
    223 }
    224 
    225 /**
    226202 * Enqueue BuddyPress specific CSS and JS
    227203 *
Note: See TracChangeset for help on using the changeset viewer.