Changeset 3114
- Timestamp:
- 07/02/2010 07:20:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bp-core/bp-core-catchuri.php
r3103 r3114 256 256 bp_core_redirect( $bp->root_domain ); 257 257 258 // Add .php to all options in $bp_path 259 foreach( (array) $bp_path as $template ) 260 $filtered_templates[] = "$template.php"; 261 258 262 // If the template file doesn't exist, redirect to the root domain. 259 if ( !bp_is_blog_page() && !file_exists( apply_filters( 'bp_located_template', locate_template( array( $bp_path . '.php' ), false ), array( $bp_path . '.php' ) ) ) )263 if ( !bp_is_blog_page() && !file_exists( apply_filters( 'bp_located_template', locate_template( $filtered_templates, false ), $filtered_templates ) ) ) 260 264 bp_core_redirect( $bp->root_domain ); 261 265
Note: See TracChangeset
for help on using the changeset viewer.