From 40ef76c12ba09117c5d747e501343fe89c156785 Mon Sep 17 00:00:00 2001 From: Refael Iliaguyev Date: Thu, 6 Jul 2017 09:03:15 +0300 Subject: [PATCH] Add rtl support for activation.css --- includes/admin/class-wc-admin-notices.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/admin/class-wc-admin-notices.php b/includes/admin/class-wc-admin-notices.php index d2455a51edce7..1aed302ce34ee 100644 --- a/includes/admin/class-wc-admin-notices.php +++ b/includes/admin/class-wc-admin-notices.php @@ -146,6 +146,10 @@ public static function add_notices() { if ( ! empty( $notices ) ) { wp_enqueue_style( 'woocommerce-activation', plugins_url( '/assets/css/activation.css', WC_PLUGIN_FILE ) ); + + // Add RTL support + wp_style_add_data( 'woocommerce-activation', 'rtl', 'replace' ); + foreach ( $notices as $notice ) { if ( ! empty( self::$core_notices[ $notice ] ) && apply_filters( 'woocommerce_show_admin_notice', true, $notice ) ) { add_action( 'admin_notices', array( __CLASS__, self::$core_notices[ $notice ] ) );