Ticket #6190: 6190.02.patch
| File 6190.02.patch, 670 bytes (added by , 11 years ago) |
|---|
-
src/bp-templates/bp-legacy/buddypress-functions.php
497 497 // Add it to the beginning of the templates array so it takes precedence 498 498 // over the default hierarchy. 499 499 if ( ! empty( $page_template ) ) { 500 array_unshift( $templates, $page_template ); 500 // Check for existence of template before adding it to template stack 501 if ( '' !== locate_template( $page_template ) ) { 502 array_unshift( $templates, $page_template ); 503 } 501 504 } 502 505 503 506 return $templates;