Changeset 3960 for branches/plugin/bbp-theme-compat/bbpress-functions.php
- Timestamp:
- 06/14/2012 12:49:16 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-theme-compat/bbpress-functions.php
r3959 r3960 145 145 146 146 // Check child theme 147 if ( file_exists( get_stylesheet_directory() . $file ) ) {147 if ( file_exists( trailingslashit( get_stylesheet_directory() ) . $file ) ) { 148 148 $location = trailingslashit( get_stylesheet_directory_uri() ); 149 149 $handle = 'bbp-child-bbpress'; 150 150 151 151 // Check parent theme 152 } elseif ( file_exists( get_template_directory() . $file ) ) {152 } elseif ( file_exists( trailingslashit( get_template_directory() ) . $file ) ) { 153 153 $location = trailingslashit( get_template_directory_uri() ); 154 154 $handle = 'bbp-parent-bbpress'; 155 155 156 // bbPress Theme Compatibil ty156 // bbPress Theme Compatibility 157 157 } else { 158 158 $location = trailingslashit( $this->url );
Note: See TracChangeset
for help on using the changeset viewer.