From 6c12e99acfecea978988af890da8a21014c0819a Mon Sep 17 00:00:00 2001 From: Hamid Reza Yazdani Date: Tue, 12 Mar 2024 14:16:49 +0330 Subject: [PATCH] Fix Fatal error in Woo product edit screen Add WCAG2.1 to the classic editor --- assets/css/editor-rtl.css | 5 +++-- assets/css/editor-rtl.min.css | 2 +- includes/plugins/wc-gateways/wc-gateways.php | 1 - wp-parsidate.php | 4 +++- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/assets/css/editor-rtl.css b/assets/css/editor-rtl.css index bbd275a..c56b701 100644 --- a/assets/css/editor-rtl.css +++ b/assets/css/editor-rtl.css @@ -17,8 +17,9 @@ body, #tinymce { font-family: Vazir, tahoma, arial, serif; - font-size: 13px; - direction: rtl + direction: rtl; + font-size: 15px; + line-height: 1.7 } p { diff --git a/assets/css/editor-rtl.min.css b/assets/css/editor-rtl.min.css index 785755f..3147196 100644 --- a/assets/css/editor-rtl.min.css +++ b/assets/css/editor-rtl.min.css @@ -1 +1 @@ -@font-face{font-family:Vazir;src:url("../fonts/Vazirmatn-Regular.woff2") format("woff2");font-weight:normal;font-style:normal;font-display:swap}@font-face{font-family:Vazir;src:url('../fonts/Vazirmatn-Bold.woff2') format("woff2");font-weight:bold;font-style:normal;font-display:swap}body,#tinymce{font-family:Vazir,tahoma,arial,serif;font-size:13px;direction:rtl}p{margin-top:13px;margin-bottom:13px}h1,h2,h3,h4,h5,h6{margin-top:15px;margin-bottom:15px} \ No newline at end of file +@font-face{font-family:Vazir;src:url(../fonts/Vazirmatn-Regular.woff2)format("woff2");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Vazir;src:url(../fonts/Vazirmatn-Bold.woff2)format("woff2");font-weight:700;font-style:normal;font-display:swap}#tinymce,body{font-family:Vazir,tahoma,arial,serif;direction:rtl;font-size:15px;line-height:1.7}p{margin-top:13px;margin-bottom:13px}h1,h2,h3,h4,h5,h6{margin-top:15px;margin-bottom:15px} \ No newline at end of file diff --git a/includes/plugins/wc-gateways/wc-gateways.php b/includes/plugins/wc-gateways/wc-gateways.php index b87d01c..41107e8 100644 --- a/includes/plugins/wc-gateways/wc-gateways.php +++ b/includes/plugins/wc-gateways/wc-gateways.php @@ -83,7 +83,6 @@ public function add_settings( $old_settings ) { 'std' => array( 'parsian', 'pasargad', 'mellat' ) ) ); - var_dump('ddddddddddddddddddddd'); return array_merge( $old_settings, $settings ); } diff --git a/wp-parsidate.php b/wp-parsidate.php index 55fb944..9c9101e 100644 --- a/wp-parsidate.php +++ b/wp-parsidate.php @@ -75,6 +75,8 @@ private function __construct() { } } + WPP_ParsiDate::getInstance(); + add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'parsi_settings_link' ) ); add_action( 'widgets_init', array( $this, 'register_widget' ) ); add_action( 'admin_enqueue_scripts', array( $this, 'wpp_load_vazir_font_in_admin_area' ) ); @@ -263,4 +265,4 @@ public static function wpp_multilingual_is_active() { } } -return WP_Parsidate::get_instance(); +return WP_Parsidate::get_instance(); \ No newline at end of file