Changeset 9882
- Timestamp:
- 05/20/2015 08:58:09 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/buddypress-functions.php
r9846 r9882 212 212 * 213 213 * @since BuddyPress (1.7) 214 * @since BuddyPress (2.3.0) Support custom CSS file named after the current theme or parent theme. 214 215 * 215 216 * @uses wp_enqueue_style() To enqueue the styles … … 220 221 // Locate the BP stylesheet 221 222 $ltr = $this->locate_asset_in_stack( "buddypress{$min}.css", 'css' ); 222 $rtl = $this->locate_asset_in_stack( "buddypress-rtl{$min}.css", 'css' );223 223 224 224 // LTR … … 242 242 243 243 // Compatibility stylesheets for specific themes. 244 $asset = $this->locate_asset_in_stack( get_ stylesheet() . "{$min}.css", 'css' );244 $asset = $this->locate_asset_in_stack( get_template() . "{$min}.css", 'css' ); 245 245 if ( isset( $asset['location'] ) ) { 246 246 // use a unique handle 247 $asset['handle'] = 'bp-' . get_ stylesheet();247 $asset['handle'] = 'bp-' . get_template(); 248 248 wp_enqueue_style( $asset['handle'], $asset['location'], array(), $this->version, 'screen' ); 249 249
Note: See TracChangeset
for help on using the changeset viewer.