Parsi Date - Version 2.2.2

Version Description

  • Fix error in PHP 7
Download this release

Release Info

Developer parselearn
Plugin Icon Parsi Date
Version 2.2.2
Comparing to
See all releases

Code changes from version 2.2.1 to 2.2.2

Files changed (3) hide show
  1. includes/parsidate.php +1 -1
  2. readme.txt +4 -1
  3. wp-parsidate.php +1 -1
includes/parsidate.php CHANGED
@@ -313,7 +313,7 @@ class bn_parsidate
313
  preg_match_all('!\d+!', $persiandate, $matches);
314
  $matches=$matches[0];
315
  list($year,$mon,$day)=self::persian_to_gregorian($matches[0],$matches[1],$matches[2]);
316
- return date($format,mktime((isset($matches[3])?$matches[3]:0),(isset($matches[4])?$matches[4]:0),(isset($matches[5])?$matches[5]:0),$mon,$day,$year,-1));
317
  }
318
  }
319
  /*
313
  preg_match_all('!\d+!', $persiandate, $matches);
314
  $matches=$matches[0];
315
  list($year,$mon,$day)=self::persian_to_gregorian($matches[0],$matches[1],$matches[2]);
316
+ return date($format,mktime((isset($matches[3])?$matches[3]:0),(isset($matches[4])?$matches[4]:0),(isset($matches[5])?$matches[5]:0),$mon,$day,$year));
317
  }
318
  }
319
  /*
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.7
7
- Stable tag: 2.2.1
8
 
9
  Persian date support for WordPress
10
 
@@ -41,6 +41,9 @@ List of some features:
41
  4. 'Jalali Date Calender' in action
42
 
43
  == Changelog ==
 
 
 
44
  = 2.2.1 =
45
  * Compatible with WP 4.7
46
  * Fixed: Notice error in acf group page. [#issue](https://wordpress.org/support/topic/need-a-conditional-for-posts-in-wpp_fix_post_date-function/)
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.7
7
+ Stable tag: trunk
8
 
9
  Persian date support for WordPress
10
 
41
  4. 'Jalali Date Calender' in action
42
 
43
  == Changelog ==
44
+ = 2.2.2 =
45
+ * Fix error in PHP 7
46
+
47
  = 2.2.1 =
48
  * Compatible with WP 4.7
49
  * Fixed: Notice error in acf group page. [#issue](https://wordpress.org/support/topic/need-a-conditional-for-posts-in-wpp_fix_post_date-function/)
wp-parsidate.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: WP-Parsidate
4
- * Version: 2.2.1
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
1
  <?php
2
  /**
3
  * Plugin Name: WP-Parsidate
4
+ * Version: 2.2.2
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