Changeset 8770 for trunk/src/bp-core/bp-core-cssjs.php
- Timestamp:
- 08/09/2014 02:55:29 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-cssjs.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-cssjs.php
r8769 r8770 46 46 */ 47 47 function bp_core_register_common_styles() { 48 $ext = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '.css' : '.min.css'; 49 $rtl = is_rtl() ? '-rtl' : ''; 48 $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; 50 49 $url = buddypress()->plugin_url . 'bp-core/css/'; 51 50 52 51 $styles = apply_filters( 'bp_core_register_common_styles', array( 53 52 'bp-admin-bar' => array( 54 'file' => apply_filters( 'bp_core_admin_bar_css', "{$url}admin-bar{$ rtl}{$ext}" ),53 'file' => apply_filters( 'bp_core_admin_bar_css', "{$url}admin-bar{$min}.css" ), 55 54 'dependencies' => array( 'admin-bar' ) 56 55 ) … … 59 58 foreach ( $styles as $id => $style ) { 60 59 wp_register_style( $id, $style['file'], $style['dependencies'], bp_get_version() ); 60 61 wp_style_add_data( $id, 'rtl', true ); 62 if ( $min ) { 63 wp_style_add_data( $id, 'suffix', $min ); 64 } 61 65 } 62 66 }
Note: See TracChangeset
for help on using the changeset viewer.