Changeset 9630
- Timestamp:
- 03/20/2015 01:42:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/buddypress-functions.php
r9629 r9630 318 318 */ 319 319 private function locate_asset_in_stack( $file, $type = 'css', $script_handle = '' ) { 320 // Child, parent, theme compat321 320 $locations = array(); 321 322 // Ensure the assets can be located when running from /src/. 323 if ( defined( 'BP_SOURCE_SUBDIRECTORY' ) && BP_SOURCE_SUBDIRECTORY === 'src' ) { 324 $file = str_replace( '.min', '', $file ); 325 } 322 326 323 327 // No need to check child if template == stylesheet … … 326 330 'dir' => get_stylesheet_directory(), 327 331 'uri' => get_stylesheet_directory_uri(), 328 'file' => str_replace( '.min', '', $file )332 'file' => $file, 329 333 ); 330 334 } … … 333 337 'dir' => get_template_directory(), 334 338 'uri' => get_template_directory_uri(), 335 'file' => str_replace( '.min', '', $file )339 'file' => $file, 336 340 ); 337 341 … … 339 343 'dir' => bp_get_theme_compat_dir(), 340 344 'uri' => bp_get_theme_compat_url(), 341 'file' => str_replace( '.min', '', $file )345 'file' => $file, 342 346 ); 343 347
Note: See TracChangeset
for help on using the changeset viewer.