Skip to:
Content

BuddyPress.org

Changeset 5870


Ignore:
Timestamp:
02/29/2012 11:14:12 PM (13 years ago)
Author:
boonebgorges
Message:

Move bp_redirect_canonical to bp_template_redirect, for greater consistency with WP template loading and canonical redirects.
Fixes #4031.
Also changes the priority of some actions that are currently hooked to bp_template_redirect, to ensure that they are fired after bp_redirect_canonical().

Location:
trunk/bp-core
Files:
2 edited

Legend:

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

    r5868 r5870  
    7575 * Attach various template actions to the bp_template_redirect action.
    7676 * The load order helps to execute code at the correct time.
    77  * 
     77 *
    7878 * Note that we currently use template_redirect versus template include because
    7979 * BuddyPress is a bully and overrides the existing themes output in many
    8080 * places. This won't always be this way, we promise.
    81  *                                                v---Load order
    82  */
    83 add_action( 'bp_template_redirect', 'bp_actions', 2 );
    84 add_action( 'bp_template_redirect', 'bp_screens', 4 );
     81 *                                                       v---Load order
     82 */
     83add_action( 'bp_template_redirect', 'bp_redirect_canonical', 2 );
     84add_action( 'bp_template_redirect', 'bp_actions',        4 );
     85add_action( 'bp_template_redirect', 'bp_screens',        6 );
    8586
    8687// Load the admin
     
    204205 *
    205206 * @since BuddyPress (1.6)
    206  * 
     207 *
    207208 * @uses do_action() Calls 'bp_head' hook
    208209 */
     
    215216 *
    216217 * @since BuddyPress (1.6)
    217  * 
     218 *
    218219 * @uses do_action() Calls 'bp_footer' hook
    219220 */
  • trunk/bp-core/bp-core-catchuri.php

    r5818 r5870  
    587587    }
    588588}
    589 add_action( 'bp_core_pre_load_template', 'bp_redirect_canonical' );
    590589
    591590/**
Note: See TracChangeset for help on using the changeset viewer.