Calculated Fields Form - Version 1.1.121

Version Description

  • Improves the plugin security.
Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Calculated Fields Form
Version 1.1.121
Comparing to
See all releases

Code changes from version 1.1.120 to 1.1.121

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://cff.dwbooster.com
4
  Tags: form,quote form,contact form,form builder,calculator,calculated,quote calculator,forms,form editor,advanced forms,payment calculator,payment,recurring payment,quote,fields,calculated field,price calculator,email,form design,paypal,equation editor,formula,equation,quote calculator,post,posts,plugin,widget,admin,sidebar,images,image,page,shortcode,products form,woocommerce,addons,layout,session,post,cookie,get,webhook,Dropbox,pdf,language
5
  Requires at least: 3.0.5
6
  Tested up to: 6.0
7
- Stable tag: 1.1.120
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -965,6 +965,10 @@ A: Please, follow the steps below:
965
 
966
  == Changelog ==
967
 
 
 
 
 
968
  = 1.1.120 =
969
 
970
  * Optimizes select queries in widgets by reducing execution time and resource usage.
@@ -1012,9 +1016,4 @@ A: Please, follow the steps below:
1012
 
1013
  = 1.1.112 =
1014
 
1015
- * Removes unnecessary characters.
1016
-
1017
- = 1.1.111 =
1018
-
1019
- * Improves the plugin code.
1020
- * Includes additional forms to the forms library.
4
  Tags: form,quote form,contact form,form builder,calculator,calculated,quote calculator,forms,form editor,advanced forms,payment calculator,payment,recurring payment,quote,fields,calculated field,price calculator,email,form design,paypal,equation editor,formula,equation,quote calculator,post,posts,plugin,widget,admin,sidebar,images,image,page,shortcode,products form,woocommerce,addons,layout,session,post,cookie,get,webhook,Dropbox,pdf,language
5
  Requires at least: 3.0.5
6
  Tested up to: 6.0
7
+ Stable tag: 1.1.121
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
965
 
966
  == Changelog ==
967
 
968
+ = 1.1.121 =
969
+
970
+ * Improves the plugin security.
971
+
972
  = 1.1.120 =
973
 
974
  * Optimizes select queries in widgets by reducing execution time and resource usage.
1016
 
1017
  = 1.1.112 =
1018
 
1019
+ * Removes unnecessary characters.
 
 
 
 
 
changelog.txt CHANGED
@@ -1,5 +1,9 @@
1
  == Changelog ==
2
 
 
 
 
 
3
  = 1.1.120 =
4
 
5
  * Optimizes select queries in widgets by reducing execution time and resource usage.
1
  == Changelog ==
2
 
3
+ = 1.1.121 =
4
+
5
+ * Improves the plugin security.
6
+
7
  = 1.1.120 =
8
 
9
  * Optimizes select queries in widgets by reducing execution time and resource usage.
cp_calculatedfieldsf_free.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Calculated Fields Form
4
  Plugin URI: https://cff.dwbooster.com
5
  Description: Create forms with field values calculated based in other form field values.
6
- Version: 1.1.120
7
  Text Domain: calculated-fields-form
8
  Author: CodePeople
9
  Author URI: https://cff.dwbooster.com
@@ -15,7 +15,7 @@ if ( ! defined( 'WP_DEBUG' ) || true != WP_DEBUG ) {
15
  }
16
 
17
  // Defining main constants
18
- define( 'CP_CALCULATEDFIELDSF_VERSION', '1.1.120' );
19
  define( 'CP_CALCULATEDFIELDSF_MAIN_FILE_PATH', __FILE__ );
20
  define( 'CP_CALCULATEDFIELDSF_BASE_PATH', dirname( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
21
  define( 'CP_CALCULATEDFIELDSF_BASE_NAME', plugin_basename( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
3
  Plugin Name: Calculated Fields Form
4
  Plugin URI: https://cff.dwbooster.com
5
  Description: Create forms with field values calculated based in other form field values.
6
+ Version: 1.1.121
7
  Text Domain: calculated-fields-form
8
  Author: CodePeople
9
  Author URI: https://cff.dwbooster.com
15
  }
16
 
17
  // Defining main constants
18
+ define( 'CP_CALCULATEDFIELDSF_VERSION', '1.1.121' );
19
  define( 'CP_CALCULATEDFIELDSF_MAIN_FILE_PATH', __FILE__ );
20
  define( 'CP_CALCULATEDFIELDSF_BASE_PATH', dirname( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
21
  define( 'CP_CALCULATEDFIELDSF_BASE_NAME', plugin_basename( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
feedback/cp-feedback.php CHANGED
@@ -44,7 +44,12 @@ if ( ! class_exists( 'CP_FEEDBACK' ) ) {
44
 
45
  // This function is used only if explicitly accepted (opt-in) by the user
46
  public function feedback_action() {
47
- if ( isset( $_POST['feedback_plugin'] ) && $_POST['feedback_plugin'] == $this->plugin_slug ) { // phpcs:ignore WordPress.Security.NonceVerification
 
 
 
 
 
48
  $plugin_data = get_plugin_data( $this->plugin_file );
49
  $plugin_version = $plugin_data['Version'];
50
  $time = time() - get_option( 'installed_' . $this->plugin_slug, 0 );
44
 
45
  // This function is used only if explicitly accepted (opt-in) by the user
46
  public function feedback_action() {
47
+ if (
48
+ isset( $_POST['feedback_plugin'] ) &&
49
+ $_POST['feedback_plugin'] == $this->plugin_slug &&
50
+ isset( $_POST['_wpnonce'] ) &&
51
+ wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['_wpnonce'] ) ), 'calculated-fields-form-feedback' )
52
+ ) { // phpcs:ignore WordPress.Security.NonceVerification
53
  $plugin_data = get_plugin_data( $this->plugin_file );
54
  $plugin_version = $plugin_data['Version'];
55
  $time = time() - get_option( 'installed_' . $this->plugin_slug, 0 );
feedback/feedback.html CHANGED
@@ -6,6 +6,7 @@
6
  </style>
7
  <h3><strong>Please let me know the reason why you are deactivating our plugin:</strong></h3>
8
  <form id="cp_feedback_form{{plugin_slug}}">
 
9
  <div class="cp-feedback-reason-block">
10
  <label>
11
  <input type="radio" name="answer" value="collect-data">
6
  </style>
7
  <h3><strong>Please let me know the reason why you are deactivating our plugin:</strong></h3>
8
  <form id="cp_feedback_form{{plugin_slug}}">
9
+ <?php wp_nonce_field( 'calculated-fields-form-feedback', '_wpnonce' ); ?>
10
  <div class="cp-feedback-reason-block">
11
  <label>
12
  <input type="radio" name="answer" value="collect-data">