Form Builder | Create Responsive Contact Forms - Version 1.9.8.5

Version Description

Download this release

Release Info

Developer umarbajwa
Plugin Icon 128x128 Form Builder | Create Responsive Contact Forms
Version 1.9.8.5
Comparing to
See all releases

Code changes from version 1.9.8.4 to 1.9.8.5

admin/core/class/class-smuzform-admin.php CHANGED
@@ -239,7 +239,7 @@ class SmuzForm_Admin {
239
  if ( ! isset( $_GET['form_id'] ) )
240
  wp_die( 'Use the form builder page to get here.' );
241
 
242
- $entryManager = new SmuzForm_Entry( sanitize_text_field( $_GET['form_id'] ) );
243
 
244
  include smuzform_admin_view( '/entry/settings-page.php' );
245
 
@@ -253,7 +253,7 @@ class SmuzForm_Admin {
253
  if ( ! isset( $_GET['form_id'] ) )
254
  wp_die( 'Use the form builder page to get here.' );
255
 
256
- $notificationManager = new SmuzForm_Notification_Manager( sanitize_text_field( $_GET['form_id'] ) );
257
 
258
  include smuzform_admin_view( '/notification/settings-page.php' );
259
 
@@ -267,7 +267,7 @@ class SmuzForm_Admin {
267
  if ( ! isset( $_GET['form_id'] ) )
268
  wp_die( 'Use the form builder page to get here.' );
269
 
270
- $styleManager = new SmuzForm_Style_Manager( sanitize_text_field( $_GET['form_id'] ) );
271
 
272
  include smuzform_admin_view( '/style/settings-page.php' );
273
 
@@ -416,7 +416,7 @@ class SmuzForm_Admin {
416
  $js_form_id = null;
417
 
418
  if ( isset( $_GET['form_id'] ) )
419
- $js_form_id = sanitize_text_field( $_GET['form_id'] );
420
 
421
  $js = array(
422
  'admin_url' => admin_url(),
@@ -496,7 +496,7 @@ class SmuzForm_Admin {
496
  $js_form_id = null;
497
 
498
  if ( isset( $_GET['form_id'] ) )
499
- $js_form_id = sanitize_text_field( $_GET['form_id'] );
500
 
501
  $js = array(
502
  'admin_url' => admin_url(),
239
  if ( ! isset( $_GET['form_id'] ) )
240
  wp_die( 'Use the form builder page to get here.' );
241
 
242
+ $entryManager = new SmuzForm_Entry( sanitize_text_field( intval($_GET['form_id']) ) );
243
 
244
  include smuzform_admin_view( '/entry/settings-page.php' );
245
 
253
  if ( ! isset( $_GET['form_id'] ) )
254
  wp_die( 'Use the form builder page to get here.' );
255
 
256
+ $notificationManager = new SmuzForm_Notification_Manager( sanitize_text_field( intval($_GET['form_id']) ) );
257
 
258
  include smuzform_admin_view( '/notification/settings-page.php' );
259
 
267
  if ( ! isset( $_GET['form_id'] ) )
268
  wp_die( 'Use the form builder page to get here.' );
269
 
270
+ $styleManager = new SmuzForm_Style_Manager( sanitize_text_field( intval($_GET['form_id']) ) );
271
 
272
  include smuzform_admin_view( '/style/settings-page.php' );
273
 
416
  $js_form_id = null;
417
 
418
  if ( isset( $_GET['form_id'] ) )
419
+ $js_form_id = sanitize_text_field( intval($_GET['form_id']) );
420
 
421
  $js = array(
422
  'admin_url' => admin_url(),
496
  $js_form_id = null;
497
 
498
  if ( isset( $_GET['form_id'] ) )
499
+ $js_form_id = sanitize_text_field( intval( $_GET['form_id'] ) );
500
 
501
  $js = array(
502
  'admin_url' => admin_url(),
admin/core/class/class-smuzform-entry-model.php CHANGED
@@ -38,7 +38,7 @@ class SmuzForm_Entry_Model {
38
 
39
  function get() {
40
 
41
- $form_id = sanitize_text_field($_GET['formID']);
42
 
43
  if ( get_post_type( $form_id ) !== $this->post_type )
44
  exit();
@@ -118,8 +118,8 @@ class SmuzForm_Entry_Model {
118
  **/
119
  function delete(){
120
 
121
- $entry_id = sanitize_text_field($_GET['entryID']);
122
- $form_id = sanitize_text_field($_GET['formID']);
123
 
124
  global $wpdb;
125
 
38
 
39
  function get() {
40
 
41
+ $form_id = sanitize_text_field( intval($_GET['formID']) );
42
 
43
  if ( get_post_type( $form_id ) !== $this->post_type )
44
  exit();
118
  **/
119
  function delete(){
120
 
121
+ $entry_id = sanitize_text_field( intval( $_GET['entryID'] ) );
122
+ $form_id = sanitize_text_field( intval($_GET['formID']) );
123
 
124
  global $wpdb;
125
 
admin/core/class/class-smuzform-model.php CHANGED
@@ -107,7 +107,7 @@ class SmuzForm_Model {
107
  **/
108
  function get() {
109
 
110
- $form_id = sanitize_text_field($_GET['formID']);
111
 
112
  $data = get_post_meta( $form_id, 'model', true );
113
 
@@ -127,7 +127,7 @@ class SmuzForm_Model {
127
  **/
128
  function delete() {
129
 
130
- $form_id = sanitize_text_field($_GET['formID']);
131
 
132
  if ( get_post_type( $form_id ) !== $this->post_type )
133
  exit();
107
  **/
108
  function get() {
109
 
110
+ $form_id = sanitize_text_field( intval($_GET['formID']));
111
 
112
  $data = get_post_meta( $form_id, 'model', true );
113
 
127
  **/
128
  function delete() {
129
 
130
+ $form_id = sanitize_text_field(intval($_GET['formID']));
131
 
132
  if ( get_post_type( $form_id ) !== $this->post_type )
133
  exit();
admin/core/class/class-smuzform-notification-model.php CHANGED
@@ -56,7 +56,7 @@ class SmuzForm_Notification_Model {
56
  $value = sanitize_text_field( $value );
57
  } );
58
 
59
- $form_id = sanitize_text_field($_GET['formID']);
60
 
61
  update_post_meta( $form_id, 'notifications', $data );
62
 
@@ -79,7 +79,7 @@ class SmuzForm_Notification_Model {
79
  **/
80
  function get() {
81
 
82
- $form_id = sanitize_text_field($_GET['formID']);
83
 
84
  $data = get_post_meta( $form_id, 'notifications', true );
85
 
@@ -94,7 +94,7 @@ class SmuzForm_Notification_Model {
94
  **/
95
  function delete() {
96
 
97
- $form_id = sanitize_text_field($_GET['formID']);
98
 
99
  if ( get_post_type( $form_id ) !== $this->post_type )
100
  exit();
56
  $value = sanitize_text_field( $value );
57
  } );
58
 
59
+ $form_id = sanitize_text_field(intval($_GET['formID']));
60
 
61
  update_post_meta( $form_id, 'notifications', $data );
62
 
79
  **/
80
  function get() {
81
 
82
+ $form_id = sanitize_text_field(intval($_GET['formID']));
83
 
84
  $data = get_post_meta( $form_id, 'notifications', true );
85
 
94
  **/
95
  function delete() {
96
 
97
+ $form_id = sanitize_text_field(intval($_GET['formID']));
98
 
99
  if ( get_post_type( $form_id ) !== $this->post_type )
100
  exit();
admin/views/entry/edit-entry.php CHANGED
@@ -10,7 +10,7 @@
10
 
11
  <ul class="nav navbar-nav navbar-right" id="navBarActionsCont">
12
  <li class="navBarActionsLi">
13
- <a id="formEntriesAction" href="<?php echo admin_url( 'admin.php?page=smuz-forms-entry&form_id='.sanitize_text_field($_GET['form_id']) ); ?>"><?php smuzform_translate_e( 'Go Back to Entry Manager <' ) ?></a>
14
  </li>
15
  </ul>
16
 
@@ -129,7 +129,7 @@
129
 
130
  <div id="formInfoContEntryEditor">
131
  <h2><?php smuzform_translate_e( 'Form Information' ) ?></h2>
132
- <h3><a href="<?php echo admin_url( 'admin.php?page=smuz-forms&form_id='.sanitize_text_field($_GET['form_id']) ); ?>"><?php esc_html_e( $entryManager->getTitle() ) ?></a></h3>
133
  <p><?php esc_html_e( $entryManager->getDescription() ) ?></p>
134
  </div>
135
 
10
 
11
  <ul class="nav navbar-nav navbar-right" id="navBarActionsCont">
12
  <li class="navBarActionsLi">
13
+ <a id="formEntriesAction" href="<?php echo admin_url( 'admin.php?page=smuz-forms-entry&form_id='.sanitize_text_field( intval( $_GET['form_id'] ) ) ); ?>"><?php smuzform_translate_e( 'Go Back to Entry Manager <' ) ?></a>
14
  </li>
15
  </ul>
16
 
129
 
130
  <div id="formInfoContEntryEditor">
131
  <h2><?php smuzform_translate_e( 'Form Information' ) ?></h2>
132
+ <h3><a href="<?php echo admin_url( 'admin.php?page=smuz-forms&form_id='.sanitize_text_field( intval( $_GET['form_id'] ) ) ); ?>"><?php esc_html_e( $entryManager->getTitle() ) ?></a></h3>
133
  <p><?php esc_html_e( $entryManager->getDescription() ) ?></p>
134
  </div>
135
 
admin/views/entry/settings-page.php CHANGED
@@ -10,7 +10,7 @@
10
 
11
  <ul class="nav navbar-nav navbar-right" id="navBarActionsCont">
12
  <li class="navBarActionsLi">
13
- <a id="formEntriesAction" href="<?php echo admin_url( 'admin.php?page=smuz-forms&form_id='.sanitize_text_field($_GET['form_id']) ); ?>"><?php smuzform_translate_e( 'Go Back to Form Builder <' ) ?></a>
14
  </li>
15
  </ul>
16
 
10
 
11
  <ul class="nav navbar-nav navbar-right" id="navBarActionsCont">
12
  <li class="navBarActionsLi">
13
+ <a id="formEntriesAction" href="<?php echo admin_url( 'admin.php?page=smuz-forms&form_id='.sanitize_text_field( intval( $_GET['form_id'] ) ) ); ?>"><?php smuzform_translate_e( 'Go Back to Form Builder <' ) ?></a>
14
  </li>
15
  </ul>
16
 
admin/views/settings-page.php CHANGED
@@ -70,10 +70,10 @@
70
  <p id="serverModalMessage"></p>
71
  </div>
72
 
73
- <?php if ( isset( $_GET['form_id'] ) ): $form_id = sanitize_text_field( $_GET['form_id'] ); ?>
74
 
75
  <?php if ( get_post_status( $form_id ) === 'publish' ): ?>
76
- <script> window.smuz_formid = <?php echo esc_html($form_id); ?>; </script>
77
  <?php endif; ?>
78
 
79
  <?php endif; ?>
70
  <p id="serverModalMessage"></p>
71
  </div>
72
 
73
+ <?php if ( isset( $_GET['form_id'] ) ): $form_id = sanitize_text_field( intval( $_GET['form_id'] ) ); ?>
74
 
75
  <?php if ( get_post_status( $form_id ) === 'publish' ): ?>
76
+ <script> window.smuz_formid = <?php echo esc_js( intval($form_id) ); ?>; </script>
77
  <?php endif; ?>
78
 
79
  <?php endif; ?>
admin/views/style/settings-page.php CHANGED
@@ -9,7 +9,7 @@
9
 
10
  <ul class="nav navbar-nav navbar-right" id="navBarActionsCont">
11
  <li class="navBarActionsLi">
12
- <a id="formEntriesAction" href="<?php echo admin_url( 'admin.php?page=smuz-forms&form_id='.sanitize_text_field($_GET['form_id']) ); ?>"><?php smuzform_translate_e( 'Go Back to Form Builder <' ) ?></a>
13
  </li>
14
  </ul>
15
 
9
 
10
  <ul class="nav navbar-nav navbar-right" id="navBarActionsCont">
11
  <li class="navBarActionsLi">
12
+ <a id="formEntriesAction" href="<?php echo admin_url( 'admin.php?page=smuz-forms&form_id='.sanitize_text_field( intval( $_GET['form_id'] ) ) ); ?>"><?php smuzform_translate_e( 'Go Back to Form Builder <' ) ?></a>
13
  </li>
14
  </ul>
15
 
forms.php CHANGED
@@ -5,7 +5,7 @@ Description: Create Responsive Forms using Drag & Drop Visual Builder. View entr
5
  Author: Web-Settler
6
  Author URI: https://web-settler.com/form-builder/?ref=author_uri
7
  Plugin URI: https://web-settler.com/form-builder/?ref=plugin_uri
8
- Version: 1.9.8.4
9
  License: GPL V2+
10
  **/
11
 
5
  Author: Web-Settler
6
  Author URI: https://web-settler.com/form-builder/?ref=author_uri
7
  Plugin URI: https://web-settler.com/form-builder/?ref=plugin_uri
8
+ Version: 1.9.8.5
9
  License: GPL V2+
10
  **/
11
 
public/core/class/class-smuzform-public-storage.php CHANGED
@@ -20,7 +20,7 @@ class SmuzForm_Public_Storage {
20
 
21
  function api() {
22
 
23
- $form_id = sanitize_text_field( $_GET['formId'] );
24
 
25
  $this->preCheckup( $form_id );
26
 
20
 
21
  function api() {
22
 
23
+ $form_id = sanitize_text_field( intval($_GET['formId']) );
24
 
25
  $this->preCheckup( $form_id );
26
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: umarbajwa
3
  Requires at least: 3.7
4
  Tested up to: 5.8
5
  Tags: contact form, form builder, contact, landing page, form, custom forms
6
- Stable tag: 1.9.8.4
7
  Donate Link: https://web-settler.com/form-builder/
8
  License: GPL V2 or latest
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
3
  Requires at least: 3.7
4
  Tested up to: 5.8
5
  Tags: contact form, form builder, contact, landing page, form, custom forms
6
+ Stable tag: 1.9.8.5
7
  Donate Link: https://web-settler.com/form-builder/
8
  License: GPL V2 or latest
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html