Ticket #6190: 6190.01.patch
| File 6190.01.patch, 749 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 // Get all valid custom page templates 501 $theme_custom_templates = wp_get_theme()->get_page_templates( $page_id ); 502 503 // Check existence of custom page template; if doesn't exist, bail. 504 if ( ! isset( $page_templates[ $page_template ] ) ) { 505 return $templates; 506 } 507 500 508 array_unshift( $templates, $page_template ); 501 509 } 502 510