Changeset 6365 for trunk/bp-core/bp-core-template-loader.php
- Timestamp:
- 09/29/2012 10:57:49 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-template-loader.php
r6329 r6365 62 62 63 63 // No file found yet 64 $located = false; 64 $located = false; 65 $child_theme = get_stylesheet_directory(); 66 $parent_theme = get_template_directory(); 67 $fallback_theme = bp_get_theme_compat_dir(); 65 68 66 69 // Try to find a template file … … 73 76 // Trim off any slashes from the template name 74 77 $template_name = ltrim( $template_name, '/' ); 75 $child_theme = get_stylesheet_directory();76 $parent_theme = get_template_directory();77 $fallback_theme = bp_get_theme_compat_dir();78 78 79 79 // Check child theme first … … 84 84 // Check parent theme next 85 85 } elseif ( file_exists( trailingslashit( $parent_theme ) . $template_name ) ) { 86 $located = trailingslashit( $ child_theme ) . $template_name;86 $located = trailingslashit( $parent_theme ) . $template_name; 87 87 break; 88 88
Note: See TracChangeset
for help on using the changeset viewer.