Skip to:
Content

BuddyPress.org

Changeset 12401


Ignore:
Timestamp:
05/25/2019 02:30:01 PM (5 years ago)
Author:
imath
Message:

When needed RTL versions of CSS used in Core now replace the LTR ones

Props geminorum

Fixes #8097

Location:
trunk/src
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-admin.php

    r12395 r12401  
    311311    wp_enqueue_style( 'bp_activity_admin_css', $bp->plugin_url . "bp-activity/admin/css/admin{$min}.css", array(),                               bp_get_version()       );
    312312
    313     wp_style_add_data( 'bp_activity_admin_css', 'rtl', true );
     313    wp_style_add_data( 'bp_activity_admin_css', 'rtl', 'replace' );
    314314    if ( $min ) {
    315315        wp_style_add_data( 'bp_activity_admin_css', 'suffix', $min );
  • trunk/src/bp-activity/bp-activity-cssjs.php

    r10613 r12401  
    3737    wp_enqueue_style( 'bp-mentions-css', buddypress()->plugin_url . "bp-activity/css/mentions{$min}.css", array(), bp_get_version() );
    3838
    39     wp_style_add_data( 'bp-mentions-css', 'rtl', true );
     39    wp_style_add_data( 'bp-mentions-css', 'rtl', 'replace' );
    4040    if ( $min ) {
    4141        wp_style_add_data( 'bp-mentions-css', 'suffix', $min );
  • trunk/src/bp-core/bp-core-cssjs.php

    r12351 r12401  
    157157        wp_register_style( $id, $style['file'], $style['dependencies'], bp_get_version() );
    158158
    159         wp_style_add_data( $id, 'rtl', true );
     159        wp_style_add_data( $id, 'rtl', 'replace' );
    160160        if ( $min ) {
    161161            wp_style_add_data( $id, 'suffix', $min );
  • trunk/src/bp-core/classes/class-bp-admin.php

    r12296 r12401  
    11061106        foreach ( $styles as $id => $style ) {
    11071107            wp_register_style( $id, $style['file'], $style['dependencies'], $version );
    1108             wp_style_add_data( $id, 'rtl', true );
     1108            wp_style_add_data( $id, 'rtl', 'replace' );
    11091109
    11101110            if ( $min ) {
  • trunk/src/bp-core/deprecated/2.1.php

    r11447 r12401  
    335335    wp_enqueue_style( 'bp-admin-bar', apply_filters( 'bp_core_buddybar_rtl_css', $stylesheet ), array(), bp_get_version() );
    336336
    337     wp_style_add_data( 'bp-admin-bar', 'rtl', true );
     337    wp_style_add_data( 'bp-admin-bar', 'rtl', 'replace' );
    338338    if ( $min ) {
    339339        wp_style_add_data( 'bp-admin-bar', 'suffix', $min );
  • trunk/src/bp-groups/bp-groups-admin.php

    r12303 r12401  
    203203    wp_enqueue_style( 'bp_groups_admin_css', $bp->plugin_url . "bp-groups/admin/css/admin{$min}.css", array(), bp_get_version() );
    204204
    205     wp_style_add_data( 'bp_groups_admin_css', 'rtl', true );
     205    wp_style_add_data( 'bp_groups_admin_css', 'rtl', 'replace' );
    206206    if ( $min ) {
    207207        wp_style_add_data( 'bp_groups_admin_css', 'suffix', $min );
  • trunk/src/bp-members/classes/class-bp-members-admin.php

    r11907 r12401  
    625625        wp_enqueue_style( 'bp-members-css', $css, array(), bp_get_version() );
    626626
    627         wp_style_add_data( 'bp-members-css', 'rtl', true );
     627        wp_style_add_data( 'bp-members-css', 'rtl', 'replace' );
    628628        if ( $min ) {
    629629            wp_style_add_data( 'bp-members-css', 'suffix', $min );
  • trunk/src/bp-messages/bp-messages-cssjs.php

    r10630 r12401  
    4343        wp_enqueue_style( 'bp-messages-autocomplete', "{$url}autocomplete/jquery.autocompletefb{$min}.css", array(), bp_get_version() );
    4444
    45         wp_style_add_data( 'bp-messages-autocomplete', 'rtl', true );
     45        wp_style_add_data( 'bp-messages-autocomplete', 'rtl', 'replace' );
    4646        if ( $min ) {
    4747            wp_style_add_data( 'bp-messages-autocomplete', 'suffix', $min );
  • trunk/src/bp-xprofile/bp-xprofile-cssjs.php

    r11041 r12401  
    2222        wp_enqueue_style( 'xprofile-admin-css', buddypress()->plugin_url . "bp-xprofile/admin/css/admin{$min}.css", array(), bp_get_version() );
    2323
    24         wp_style_add_data( 'xprofile-admin-css', 'rtl', true );
     24        wp_style_add_data( 'xprofile-admin-css', 'rtl', 'replace' );
    2525        if ( $min ) {
    2626            wp_style_add_data( 'xprofile-admin-css', 'suffix', $min );
Note: See TracChangeset for help on using the changeset viewer.