Changeset 8770 for trunk/src/bp-core/deprecated/2.1.php
- Timestamp:
- 08/09/2014 02:55:29 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/deprecated/2.1.php
r8769 r8770 43 43 */ 44 44 function bp_core_register_deprecated_styles() { 45 $ext = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '.css' : '.min.css'; 46 $rtl = is_rtl() ? '-rtl' : ''; 45 $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; 47 46 $url = buddypress()->plugin_url . 'bp-core/deprecated/css/'; 48 47 … … 50 49 // Messages 51 50 'bp-messages-autocomplete' => array( 52 'file' => "{$url}autocomplete/jquery.autocompletefb{$ rtl}{$ext}",51 'file' => "{$url}autocomplete/jquery.autocompletefb{$min}.css", 53 52 'dependencies' => array(), 54 53 ) … … 57 56 foreach ( $styles as $id => $style ) { 58 57 wp_register_style( $id, $style['file'], $style['dependencies'], bp_get_version() ); 58 59 wp_style_add_data( $id, 'rtl', true ); 60 if ( $min ) { 61 wp_style_add_data( $id, 'suffix', $min ); 62 } 59 63 } 60 64 } … … 345 349 */ 346 350 function bp_core_load_buddybar_css() { 347 global $wp_styles;348 349 351 if ( bp_use_wp_admin_bar() || ( (int) bp_get_option( 'hide-loggedout-adminbar' ) && !is_user_logged_in() ) || ( defined( 'BP_DISABLE_ADMIN_BAR' ) && BP_DISABLE_ADMIN_BAR ) ) 350 352 return; … … 359 361 360 362 wp_enqueue_style( 'bp-admin-bar', apply_filters( 'bp_core_buddybar_rtl_css', $stylesheet ), array(), bp_get_version() ); 361 $wp_styles->add_data( 'bp-admin-bar', 'rtl', true ); 362 if ( $min ) 363 $wp_styles->add_data( 'bp-admin-bar', 'suffix', $min ); 363 364 wp_style_add_data( 'bp-admin-bar', 'rtl', true ); 365 if ( $min ) { 366 wp_style_add_data( 'bp-admin-bar', 'suffix', $min ); 367 } 364 368 } 365 369 add_action( 'bp_init', 'bp_core_load_buddybar_css' );
Note: See TracChangeset
for help on using the changeset viewer.