Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/09/2014 01:05:19 PM (11 years ago)
Author:
djpaul
Message:

Core: fix bp_core_register_deprecated_styles and bp_core_register_common_styles to load RTL CSS.

See #5614

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-cssjs.php

    r8765 r8769  
    4747function bp_core_register_common_styles() {
    4848    $ext = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '.css' : '.min.css';
     49    $rtl = is_rtl() ? '-rtl' : '';
    4950    $url = buddypress()->plugin_url . 'bp-core/css/';
    5051
    5152    $styles = apply_filters( 'bp_core_register_common_styles', array(
    5253        'bp-admin-bar' => array(
    53             'file'         => apply_filters( 'bp_core_admin_bar_css', "{$url}admin-bar{$ext}" ),
     54            'file'         => apply_filters( 'bp_core_admin_bar_css', "{$url}admin-bar{$rtl}{$ext}" ),
    5455            'dependencies' => array( 'admin-bar' )
    5556        )
Note: See TracChangeset for help on using the changeset viewer.