Skip to:
Content

BuddyPress.org

Changeset 2027


Ignore:
Timestamp:
10/02/2009 10:38:39 PM (17 years ago)
Author:
apeatling
Message:

Fixes #1137 props dat_paulchen

File:
1 edited

Legend:

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

    r1980 r2027  
    199199        global $wp_query;
    200200       
    201         $page = $bp_path;
     201        /* Can be a single template or an array of templates */
     202        $templates = $bp_path;
    202203       
    203204        /* Don't hijack any URLs on blog pages */
     
    218219        }
    219220       
    220         if ( $located_template = apply_filters( 'bp_located_template', locate_template( array( $page . '.php' ), $page ) ) ) {
     221        foreach ( (array)$templates as $template )
     222                $filtered_templates[] = $template . '.php';
     223       
     224        if ( $located_template = apply_filters( 'bp_located_template', locate_template( (array) $filtered_templates, false ), $filtered_templates ) ) {
    221225                load_template( apply_filters( 'bp_load_template', $located_template ) );
    222226        } else {
Note: See TracChangeset for help on using the changeset viewer.