Parsi Date - Version 2.1.7

Version Description

  • Fixed timezone bug [Reported by HANNANStd]
  • Paragraph style returned to its previous style [Reported by WP-Parsi community]
Download this release

Release Info

Developer iEhsan.ir
Plugin Icon Parsi Date
Version 2.1.7
Comparing to
See all releases

Code changes from version 2.1.6 to 2.1.7

Files changed (3) hide show
  1. assets/css/editor-rtl.css +4 -2
  2. readme.txt +5 -1
  3. wp-parsidate.php +5 -2
assets/css/editor-rtl.css CHANGED
@@ -4,8 +4,10 @@ body, #tinymce {
4
  direction: rtl;
5
  }
6
  p {
7
- margin: 0 !important;
 
8
  }
9
  h1, h2, h3, h4, h5, h6 {
10
- margin-bottom: 5px !important;
 
11
  }
4
  direction: rtl;
5
  }
6
  p {
7
+ margin-top: 13px;
8
+ margin-bottom: 13px;
9
  }
10
  h1, h2, h3, h4, h5, h6 {
11
+ margin-top: 15px;
12
+ margin-bottom: 15px;
13
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://forum.wp-parsi.com/
4
  Tags: shamsi, wp-parsi, wpparsi, persian, parsi, farsi, jalali, date, calendar, i18n, l10n, Iran, Iranian, parsidate, rtl
5
  Requires at least: 3.6
6
  Tested up to: 4.3
7
- Stable tag: 2.1.6
8
 
9
  Persian date & language package for WordPress
10
 
@@ -41,6 +41,10 @@ List of some features:
41
  4. 'Jalali Date Calender' in action
42
 
43
  == Changelog ==
 
 
 
 
44
  = 2.1.6 =
45
  * Fixed assets folder issue with community.
46
 
4
  Tags: shamsi, wp-parsi, wpparsi, persian, parsi, farsi, jalali, date, calendar, i18n, l10n, Iran, Iranian, parsidate, rtl
5
  Requires at least: 3.6
6
  Tested up to: 4.3
7
+ Stable tag: 2.1.7
8
 
9
  Persian date & language package for WordPress
10
 
41
  4. 'Jalali Date Calender' in action
42
 
43
  == Changelog ==
44
+ = 2.1.7 =
45
+ * Fixed timezone bug [Reported by HANNANStd]
46
+ * Paragraph style returned to its previous style [Reported by WP-Parsi community]
47
+
48
  = 2.1.6 =
49
  * Fixed assets folder issue with community.
50
 
wp-parsidate.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: WP-Parsidate
4
- * Version: 2.1.6
5
  * Plugin URI: http://forum.wp-parsi.com/
6
  * Description: Persian package for WordPress, Adds full RTL and Shamsi (Jalali) support for: posts, comments, pages, archives, search, categories, permalinks and all admin sections and TinyMce editor, lists, quick editor. This package has Jalali archive widget.
7
  * Author: WP-Parsi Team
@@ -151,7 +151,10 @@ final class WP_Parsidate {
151
  );
152
 
153
  $timezone = get_option( 'timezone_string' );
154
- date_default_timezone_set( $timezone );
 
 
 
155
  }
156
 
157
  /**
1
  <?php
2
  /**
3
  * Plugin Name: WP-Parsidate
4
+ * Version: 2.1.7
5
  * Plugin URI: http://forum.wp-parsi.com/
6
  * Description: Persian package for WordPress, Adds full RTL and Shamsi (Jalali) support for: posts, comments, pages, archives, search, categories, permalinks and all admin sections and TinyMce editor, lists, quick editor. This package has Jalali archive widget.
7
  * Author: WP-Parsi Team
151
  );
152
 
153
  $timezone = get_option( 'timezone_string' );
154
+ if ( $timezone != '' )
155
+ date_default_timezone_set( $timezone );
156
+ else
157
+ date_default_timezone_set( 'Asia/Tehran' );
158
  }
159
 
160
  /**