Skip to:
Content

BuddyPress.org

Changeset 6177


Ignore:
Timestamp:
07/13/2012 01:20:13 PM (13 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

Location:
trunk
Files:
3 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 *
  • trunk/bp-themes/bp-default/footer.php

    r5736 r6177  
    1616            </div>
    1717
    18             <?php do_action( 'bp_in_footer' ); ?>
     18            <?php do_action( 'bp_footer' ); ?>
    1919
    2020        </div><!-- #footer -->
     
    2222        <?php do_action( 'bp_after_footer' ); ?>
    2323
    24         <?php wp_footer(); // @see bp_footer(); ?>
     24        <?php wp_footer(); ?>
    2525
    2626    </body>
  • trunk/bp-themes/bp-default/header.php

    r5964 r6177  
    88        <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    99
    10         <?php wp_head(); // @see bp_head(); ?>
     10        <?php do_action( 'bp_head' ); ?>
     11        <?php wp_head(); ?>
    1112
    1213    </head>
Note: See TracChangeset for help on using the changeset viewer.