گرویتی فرم فارسی - Version 1.4.3

Version Description

  • Fixed : undefined index error ...
Download this release

Release Info

Developer hannanstd
Plugin Icon 128x128 گرویتی فرم فارسی
Version 1.4.3
Comparing to
See all releases

Code changes from version 1.4.2 to 1.4.3

Persian_Gravityforms_By_HANNANStd.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Persian Gravity Forms
4
  Plugin URI: https://wordpress.org/plugins/persian-gravity-forms/
5
  Description: Gravity Forms for Iranian
6
- Version: 1.4.2
7
  Requires at least: 3.5
8
  Author: HANNAN Ebrahimi Setoode
9
  Author URI: http://www.gravityforms.ir/
@@ -72,7 +72,7 @@ class GravityFormsPersian {
72
  require_once("include/Jalali.php");
73
  require_once("include/Post_Content_Merge_Tags.php");
74
  $rel_path = dirname( plugin_basename( $this->file ) ) . '/languages/';
75
- if ( $this->language == null ) {
76
  $this->language = get_option( 'WPLANG', WPLANG );
77
  $this->is_persian = ( $this->language == 'fa' || $this->language == 'fa_IR' );
78
  }
@@ -604,7 +604,7 @@ class GravityFormsPersian {
604
  wp_print_styles('gform_tooltip','Persian_GravityForms' );
605
  wp_dequeue_script('jquery-ui-datepicker');
606
  wp_dequeue_script(array("jquery-ui-datepicker"));
607
- wp_deregister_script('jquery-ui-datepicker');
608
  wp_deregister_script(array("jquery-ui-datepicker"));
609
  wp_deregister_script('gform_datepicker_init');
610
  wp_enqueue_script('gform_datepicker_init', plugins_url ( '/assets/js/wp-admin-datepicker.js', __FILE__), array( 'jquery', 'jquery-ui-core' ), true );
@@ -761,7 +761,7 @@ class GravityFormsPersian {
761
  return plugins_url( '', __FILE__ );
762
  }
763
  public function version(){
764
- return '1.4.2';
765
  }
766
  public function Add_HANNANStd_Field_By_HANNANStd( $field_groups ) {
767
  foreach( $field_groups as &$group ){
3
  Plugin Name: Persian Gravity Forms
4
  Plugin URI: https://wordpress.org/plugins/persian-gravity-forms/
5
  Description: Gravity Forms for Iranian
6
+ Version: 1.4.3
7
  Requires at least: 3.5
8
  Author: HANNAN Ebrahimi Setoode
9
  Author URI: http://www.gravityforms.ir/
72
  require_once("include/Jalali.php");
73
  require_once("include/Post_Content_Merge_Tags.php");
74
  $rel_path = dirname( plugin_basename( $this->file ) ) . '/languages/';
75
+ if ( $this->language == null && defined('WPLANG') ) {
76
  $this->language = get_option( 'WPLANG', WPLANG );
77
  $this->is_persian = ( $this->language == 'fa' || $this->language == 'fa_IR' );
78
  }
604
  wp_print_styles('gform_tooltip','Persian_GravityForms' );
605
  wp_dequeue_script('jquery-ui-datepicker');
606
  wp_dequeue_script(array("jquery-ui-datepicker"));
607
+ // wp_deregister_script('jquery-ui-datepicker');
608
  wp_deregister_script(array("jquery-ui-datepicker"));
609
  wp_deregister_script('gform_datepicker_init');
610
  wp_enqueue_script('gform_datepicker_init', plugins_url ( '/assets/js/wp-admin-datepicker.js', __FILE__), array( 'jquery', 'jquery-ui-core' ), true );
761
  return plugins_url( '', __FILE__ );
762
  }
763
  public function version(){
764
+ return '1.4.3';
765
  }
766
  public function Add_HANNANStd_Field_By_HANNANStd( $field_groups ) {
767
  foreach( $field_groups as &$group ){
include/Post_Content_Merge_Tags.php CHANGED
@@ -26,7 +26,7 @@ class PersianGravityForms_Post_Content_Merge_Tags {
26
  if ($wp_session['refid'])
27
  $session = $wp_session['refid'];
28
  else
29
- $session = $_SESSION["refid"];
30
  $entry = $this->get_entry();
31
  if( !$entry )
32
  return $post_content;
26
  if ($wp_session['refid'])
27
  $session = $wp_session['refid'];
28
  else
29
+ $session = isset($_SESSION["refid"]) ? $_SESSION["refid"] : '';
30
  $entry = $this->get_entry();
31
  if( !$entry )
32
  return $post_content;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: gravityforms,gravity forms,persian gravity forms,persian gravityforms,grav
4
  Donate link: http://www.gravityforms.ir
5
  Requires at least: 3.5
6
  Tested up to: 4.1
7
- Stable tag: 1.4.2
8
  License: GPL 2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  This WordPress plugin extends the Gravity Forms plugin and its addons with the Persian language .
@@ -83,8 +83,10 @@ You can read complete documentations on the [GravityForms.ir](http://www.Gravity
83
  19. Iranian National Code field Advanced setting
84
 
85
  == Changelog ==
 
 
86
  = 1.4.2 =
87
- * Fixed : removed rtl css in ltr mode ...
88
  = 1.4.1 =
89
  * Fixed : Fatal error: Class 'GFCommon' not found
90
  = 1.4.0 =
@@ -130,8 +132,10 @@ You can read complete documentations on the [GravityForms.ir](http://www.Gravity
130
  * First version
131
 
132
  == Upgrade Notice ==
 
 
133
  = 1.4.2 =
134
- * Fixed : removed rtl css in ltr mode ...
135
  = 1.4.1 =
136
  * Fixed : Fatal error: Class 'GFCommon' not found
137
  = 1.4.0 =
4
  Donate link: http://www.gravityforms.ir
5
  Requires at least: 3.5
6
  Tested up to: 4.1
7
+ Stable tag: 1.4.3
8
  License: GPL 2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  This WordPress plugin extends the Gravity Forms plugin and its addons with the Persian language .
83
  19. Iranian National Code field Advanced setting
84
 
85
  == Changelog ==
86
+ = 1.4.3 =
87
+ * Fixed : undefined index error ...
88
  = 1.4.2 =
89
+ * Fixed : rtl css in ltr mode ...
90
  = 1.4.1 =
91
  * Fixed : Fatal error: Class 'GFCommon' not found
92
  = 1.4.0 =
132
  * First version
133
 
134
  == Upgrade Notice ==
135
+ = 1.4.3 =
136
+ * Fixed : undefined index error ...
137
  = 1.4.2 =
138
+ * Fixed : rtl css in ltr mode ...
139
  = 1.4.1 =
140
  * Fixed : Fatal error: Class 'GFCommon' not found
141
  = 1.4.0 =