Ticket #5888: 5888.01.patch
File 5888.01.patch, 1.6 KB (added by , 10 years ago) |
---|
-
src/bp-templates/bp-legacy/buddypress-functions.php
308 308 // No need to check child if template == stylesheet 309 309 if ( is_child_theme() ) { 310 310 $locations['bp-child'] = array( 311 'dir' => get_stylesheet_directory(), 312 'uri' => get_stylesheet_directory_uri(), 311 'dir' => get_stylesheet_directory(), 312 'uri' => get_stylesheet_directory_uri(), 313 'file' => str_replace( '.min', '', $file ) 313 314 ); 314 315 } 315 316 316 317 $locations['bp-parent'] = array( 317 'dir' => get_template_directory(), 318 'uri' => get_template_directory_uri(), 318 'dir' => get_template_directory(), 319 'uri' => get_template_directory_uri(), 320 'file' => str_replace( '.min', '', $file ) 319 321 ); 320 322 321 323 $locations['bp-legacy'] = array( 322 'dir' => bp_get_theme_compat_dir(), 323 'uri' => bp_get_theme_compat_url(), 324 'dir' => bp_get_theme_compat_dir(), 325 'uri' => bp_get_theme_compat_url(), 326 'file' => $file 324 327 ); 325 328 326 329 // Subdirectories within the top-level $locations directories … … 334 337 335 338 foreach ( $locations as $location_type => $location ) { 336 339 foreach ( $subdirs as $subdir ) { 337 if ( file_exists( trailingslashit( $location['dir'] ) . trailingslashit( $subdir ) . $ file) ) {340 if ( file_exists( trailingslashit( $location['dir'] ) . trailingslashit( $subdir ) . $location['file'] ) ) { 338 341 $retval['location'] = trailingslashit( $location['uri'] ) . trailingslashit( $subdir ) . $file; 339 342 $retval['handle'] = $location_type . '-' . $type; 340 343 break 2;