Ticket #1137: ticket-1137.2.patch
File ticket-1137.2.patch, 945 bytes (added by , 15 years ago) |
---|
-
bp-core/bp-core-catchuri.php
198 198 global $bp_no_status_set; 199 199 global $wp_query; 200 200 201 $page = $bp_path;201 $pages = $bp_path; 202 202 203 203 /* Don't hijack any URLs on blog pages */ 204 204 if ( bp_is_blog_page() ) { … … 217 217 $wp_query->is_page = true; 218 218 } 219 219 220 if ( $located_template = apply_filters( 'bp_located_template', locate_template( array( $page . '.php' ), $page ) ) ) { 220 if(!is_array($pages)) 221 $pages = array($pages); 222 223 foreach($pages as &$page) 224 $page .= '.php'; 225 226 if ( $located_template = apply_filters( 'bp_located_template', locate_template( $pages , false ), $pages ) ) { 221 227 load_template( apply_filters( 'bp_load_template', $located_template ) ); 222 228 } else { 223 229 if ( $located_template = locate_template( array( '404.php' ) ) ) {