Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/29/2011 08:58:28 PM (13 years ago)
Author:
boonebgorges
Message:

Refactors URL canonicalization logic, moving it into the single bp_redirect_canonical() which is loaded from bp_core_load_template() instead of redirecting during the nav setup routine. See #1741. Combines all canonicalization into a single redirect. Fixes #3771. Ensures that query strings are preserved on redirects. Fixes #3777.

File:
1 edited

Legend:

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

    r5400 r5412  
    368368        $post                        = $wp_query->queried_object;
    369369    }
    370 
     370   
    371371    // Define local variables
    372372    $located_template   = false;
     
    386386        $wp_query->is_404  = false;
    387387
     388        do_action( 'bp_core_pre_load_template', $located_template );
     389
    388390        load_template( apply_filters( 'bp_load_template', $located_template ) );
     391   
     392        do_action( 'bp_core_post_load_template', $located_template );
    389393    }
    390394
Note: See TracChangeset for help on using the changeset viewer.