Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/09/2014 02:55:29 PM (11 years ago)
Author:
djpaul
Message:

Core: load RTL stylesheets when we need to.

Fixes #5614

File:
1 edited

Legend:

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

    r8494 r8770  
    1919    if ( !empty( $_GET['page'] ) && strpos( $_GET['page'], 'bp-profile-setup' ) !== false ) {
    2020        $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
     21
    2122        wp_enqueue_style( 'xprofile-admin-css', buddypress()->plugin_url . "bp-xprofile/admin/css/admin{$min}.css", array(), bp_get_version() );
     23
     24        wp_style_add_data( 'xprofile-admin-css', 'rtl', true );
     25        if ( $min ) {
     26            wp_style_add_data( 'xprofile-admin-css', 'suffix', $min );
     27        }
    2228    }
    2329}
Note: See TracChangeset for help on using the changeset viewer.