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

Version Description

  • Fixed : Some Minor bugs
Download this release

Release Info

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

Code changes from version 1.1.4 to 1.1.5

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.1.4
7
  Requires at least: 3.5
8
  Author: HANNAN Ebrahimi Setoode
9
  Author URI: http://www.gravityforms.ir/
@@ -599,7 +599,7 @@ public static function get_base_url(){
599
  return plugins_url( '', __FILE__ );
600
  }
601
  public function version(){
602
- return '1.1.4';
603
  }
604
  public function Add_Melli_Cart_Field_By_HANNANStd( $field_groups ) {
605
  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.1.5
7
  Requires at least: 3.5
8
  Author: HANNAN Ebrahimi Setoode
9
  Author URI: http://www.gravityforms.ir/
599
  return plugins_url( '', __FILE__ );
600
  }
601
  public function version(){
602
+ return '1.1.5';
603
  }
604
  public function Add_Melli_Cart_Field_By_HANNANStd( $field_groups ) {
605
  foreach( $field_groups as &$group ){
include/Post_Content_Merge_Tags.php CHANGED
@@ -37,20 +37,16 @@ class PersianGravityForms_Post_Content_Merge_Tags {
37
  }
38
  }
39
  function replace_merge_tags( $post_content ) {
 
40
  $entry = $this->get_entry();
41
- if( ! $entry )
42
- return $post_content;
43
  $form = GFFormsModel::get_form_meta( $entry['form_id'] );
44
- $wp_session = WP_Session::get_instance();
45
  $post_content = $this->replace_field_label_merge_tags( $post_content, $form );
46
  $post_content = GFCommon::replace_variables( $post_content, $form, $entry, false, false, false );
47
- if ( $wp_session['refid'] == $form["id"].$entry["id"] ) {
48
- return $post_content;
49
- } else {
50
- unset($post_content);
51
- $post_content = "این تراکنش قبلا به پایان رسیده بود و نتیجه آن نیز اعلام شده بود . بنا به دلایل امنیتی از بازگو کردن وضعیت آن به شما معذوریم .";
52
  return $post_content;
53
- }
54
  }
55
  function replace_field_label_merge_tags( $text, $form ) {
56
  preg_match_all( '/{([^:]+?)}/', $text, $matches, PREG_SET_ORDER );
37
  }
38
  }
39
  function replace_merge_tags( $post_content ) {
40
+ $wp_session = WP_Session::get_instance();
41
  $entry = $this->get_entry();
42
+ if( !$entry )
43
+ return $post_content;
44
  $form = GFFormsModel::get_form_meta( $entry['form_id'] );
45
+ if ( $wp_session['refid'] == $form["id"].$entry["id"] ) {
46
  $post_content = $this->replace_field_label_merge_tags( $post_content, $form );
47
  $post_content = GFCommon::replace_variables( $post_content, $form, $entry, false, false, false );
48
+ }
 
 
 
 
49
  return $post_content;
 
50
  }
51
  function replace_field_label_merge_tags( $text, $form ) {
52
  preg_match_all( '/{([^:]+?)}/', $text, $matches, PREG_SET_ORDER );
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.1.4
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,6 +83,8 @@ 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.1.4 =
87
  * Fixed : Cannot modify header information...
88
  = 1.1.3 =
@@ -106,6 +108,8 @@ You can read complete documentations on the [GravityForms.ir](http://www.Gravity
106
  * First version
107
 
108
  == Upgrade Notice ==
 
 
109
  = 1.1.4 =
110
  * Fixed : Cannot modify header information...
111
  = 1.1.3 =
4
  Donate link: http://www.gravityforms.ir
5
  Requires at least: 3.5
6
  Tested up to: 4.1
7
+ Stable tag: 1.1.5
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.1.5 =
87
+ * Fixed : Some Minor bugs
88
  = 1.1.4 =
89
  * Fixed : Cannot modify header information...
90
  = 1.1.3 =
108
  * First version
109
 
110
  == Upgrade Notice ==
111
+ = 1.1.5 =
112
+ * Fixed : Some Minor bugs
113
  = 1.1.4 =
114
  * Fixed : Cannot modify header information...
115
  = 1.1.3 =