Changeset 9064
- Timestamp:
- 10/06/2014 05:14:55 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/src/bp-templates/bp-legacy/buddypress-functions.php
r8989 r9064 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 … … 335 338 foreach ( $locations as $location_type => $location ) { 336 339 foreach ( $subdirs as $subdir ) { 337 if ( file_exists( trailingslashit( $location['dir'] ) . trailingslashit( $subdir ) . $ file) ) {338 $retval['location'] = trailingslashit( $location['uri'] ) . trailingslashit( $subdir ) . $ file;340 if ( file_exists( trailingslashit( $location['dir'] ) . trailingslashit( $subdir ) . $location['file'] ) ) { 341 $retval['location'] = trailingslashit( $location['uri'] ) . trailingslashit( $subdir ) . $location['file']; 339 342 $retval['handle'] = $location_type . '-' . $type; 340 343 break 2;
Note: See TracChangeset
for help on using the changeset viewer.