Strong Testimonials - Version 3.0.2

Version Description

  • 24.08.2022 -
  • Fixed: Star rating input for multiple forms on page ( #322 )
  • Fixed: Conflicts with other plugins ( #330 )
Download this release

Release Info

Developer raldea89
Plugin Icon 128x128 Strong Testimonials
Version 3.0.2
Comparing to
See all releases

Code changes from version 3.0.1 to 3.0.2

changelog.txt CHANGED
@@ -1,51 +1,55 @@
 
 
 
 
1
  = 3.0.1 - 18.08.2022 -
2
- - Fixed: strongValidation error on front form ( https://github.com/WPChill/strong-testimonials/issues/326 )
3
  - Added: Advanced settings tab and logging system
4
 
5
  = 3.0.0 - 18.07.2022 -
6
  - Added: Optional parameter to function wpmtst_get_success_message
7
- - Added: Added an "alt" tag for the submission form's spinner image ( https://github.com/WPChill/strong-testimonials/issues/291 )
8
  - Fixed: Fatal error in shortcode when decimals attribute from shortcode was not a number but a string
9
- - Fixed: Small typo on admin side ( https://github.com/WPChill/strong-testimonials/issues/290 )
10
- - Fixed: Minor escape bug in admin area ( https://github.com/WPChill/strong-testimonials/issues/286 )
11
- - Changed: Updated jQuery Validate version to 1.19.5 ( https://github.com/WPChill/strong-testimonials/issues/292 )
12
- - Changed: Updated the "Goodbye" form interface on plugin deactivation ( https://github.com/WPChill/strong-testimonials/issues/308 )
13
 
14
  = 2.51.9 - 04.04.2022 =
15
  - Changed: Replaced the Welcome page and now only appears on new/fresh installs
16
 
17
  = 2.51.8 - 28.03.2022 =
18
- - Fixed: Added filter to remove Upgrade from PRO when max license ( https://github.com/WPChill/strong-testimonials/issues/305 )
19
 
20
  = 2.51.7 - 21.03.2022 =
21
- - Added: Lite vs Pro page ( https://github.com/WPChill/strong-testimonials/issues/167 )
22
- - Added: Upgrade to PRO action link in the plugins page ( https://github.com/WPChill/strong-testimonials/issues/303 )
23
 
24
  = 2.51.6 - 15.09.2021 =
25
- - Fixed upsells for wp 5.8.1 ( https://github.com/WPChill/strong-testimonials/issues/281 )
26
  - Added: Tracking option - allow us to track non-sensitive data, only information regarding the WordPress environment and Strong Testimonials settings
27
 
28
  = v2.51.5 - 29/07/2021 =
29
  - Fixed: Columns and Grid css display bug, removed not needed class from testimonial content
30
 
31
  = v2.51.5 - 20/07/2021 =
32
- - Changed: The field for “Company Name” doesn't appear anymore in the list of default fields when creating a new view, if it has been removed via the form editor. ( https://github.com/WPChill/strong-testimonials/issues/240 )
33
- - Changed: JQuery Strong slider public methods in order to allow users to acces public methods of bxSlider ( https://github.com/WPChill/strong-testimonials/issues/233 )
34
- - Fixed: The Read More link display bug ( https://github.com/WPChill/strong-testimonials/issues/245 )
35
- - Fixed: Undefined index ( https://github.com/WPChill/strong-testimonials/issues/249 )
36
- - Fixed: Incompatibility problem with Swift Performance related to lazy load ( https://github.com/WPChill/strong-testimonials/issues/254 )
37
- - Fixed: Error on slider arrows on the Wave accesibility report ( https://github.com/WPChill/strong-testimonials/issues/253 )
38
- - Fixed: Extra pagination ID or slug sanitize issue from View ( https://github.com/WPChill/strong-testimonials/issues/246 )
39
- - Fixed: Title setting sanitize issue from View ( https://github.com/WPChill/strong-testimonials/issues/241 )
40
- - Fixed: Unstyled Template issue with grid layout and pagination ( https://github.com/WPChill/strong-testimonials/issues/242 )
41
- - Fixed: Security fix with input escaping ( https://github.com/WPChill/strong-testimonials/issues/269 )
42
- - Fixed: Notice when activating the plugin or entering CPT ( https://github.com/WPChill/strong-testimonials/issues/272 )
43
- - Fixed: Complete data for uninstall process ( https://github.com/WPChill/strong-testimonials/issues/264 )
44
- - Fixed: Copy shortcode functionality ( https://github.com/WPChill/strong-testimonials/issues/265 )
45
- - Changed: Upsell messages display ( https://github.com/WPChill/strong-testimonials/issues/262 )
46
- - Changed: Noopener and Noreferrer links ON by default ( https://github.com/WPChill/strong-testimonials/issues/257 )
47
- - Fixed: WAVE accessibility report ( https://github.com/WPChill/strong-testimonials/issues/253 )
48
- - Fixed: Maximum title length ( https://github.com/WPChill/strong-testimonials/issues/256 )
49
 
50
 
51
 
@@ -55,26 +59,26 @@
55
 
56
 
57
  = v2.51.3 - 16/03/2021 =
58
- - Changed: View backend in order to be more customizable ( https://github.com/WPChill/strong-testimonials/issues/222 )
59
- - Added: A class to disabled class for each template ( https://github.com/WPChill/strong-testimonials/issues/210 )
60
- - Fixed: Incompatibility between DIVI builder and testimonials'excerpt display ( https://github.com/WPChill/strong-testimonials/issues/231 )
61
- - Fixed: Sanitization issue ( https://github.com/WPChill/strong-testimonials/issues/236 )
62
 
63
  = v2.51.2 - 24/02/2021 =
64
- - Fixed: Manual excerpt ( https://github.com/WPChill/strong-testimonials/issues/220 )
65
 
66
  = v2.51.1 - 18/02/2021 =
67
  - Fixed: Extensions page CSS.
68
 
69
  = v2.51.0 - 18/02/2021 =
70
- - Changed: Added by default review field to ST form ( https://github.com/WPChill/strong-testimonials/issues/199 )
71
- - Changed: Improved security (https://github.com/WPChill/strong-testimonials/issues/200)
72
- - Changed: Upsell texts & design (https://github.com/WPChill/strong-testimonials/issues/204 / https://github.com/WPChill/strong-testimonials/issues/201)
73
- - Fixed: Addon page design (https://github.com/WPChill/strong-testimonials/issues/202)
74
- - Fixed: How excerpt were handled, now when you click read more the excerpt will hide and we will show only the full content ( https://github.com/WPChill/strong-testimonials/issues/207 )
75
- - Fixed: Show on Checked Value string without escape characters(/) ( https://github.com/WPChill/strong-testimonials/issues/209 )
76
- - Fixed: Keep HTML markup in a testimonial post intact ( https://github.com/WPChill/strong-testimonials/issues/206 )
77
- - Fixed: How RTL work with our slideshow ( https://github.com/WPChill/strong-testimonials/issues/203 )
78
 
79
  = 2.50.4 =
80
  * Added Welcome Banner when Strong Testimonials is activated.
@@ -172,7 +176,7 @@
172
  = 2.39.3 - Aug. 05, 2019 =
173
  * removed MIME duplicate header information from the mail sent when submitting a new testimonial
174
  * improved compatibility with Strong Testimonials: Advanced Views and Pro Templates extensions
175
- * Fixed warnings ( https://github.com/MachoThemes/strong-testimonials/issues/80 )
176
 
177
  = 2.39.2 - Jun. 25, 2019 =
178
  * improved compatibility with Strong Testimonials: Advanced Views extension
1
+ = 3.0.2 - 24.08.2022 -
2
+ - Fixed: Star rating input for multiple forms on page ( [#322](https://github.com/WPChill/strong-testimonials/issues/322) )
3
+ - Fixed: Conflicts with other plugins ( [#330](https://github.com/WPChill/strong-testimonials/issues/330) )
4
+
5
  = 3.0.1 - 18.08.2022 -
6
+ - Fixed: strongValidation error on front form ( [#326](https://github.com/WPChill/strong-testimonials/issues/326) )
7
  - Added: Advanced settings tab and logging system
8
 
9
  = 3.0.0 - 18.07.2022 -
10
  - Added: Optional parameter to function wpmtst_get_success_message
11
+ - Added: Added an "alt" tag for the submission form's spinner image ( [#291](https://github.com/WPChill/strong-testimonials/issues/291) )
12
  - Fixed: Fatal error in shortcode when decimals attribute from shortcode was not a number but a string
13
+ - Fixed: Small typo on admin side ( [#290](https://github.com/WPChill/strong-testimonials/issues/290) )
14
+ - Fixed: Minor escape bug in admin area ( [#286](https://github.com/WPChill/strong-testimonials/issues/286) )
15
+ - Changed: Updated jQuery Validate version to 1.19.5 ( [#292](https://github.com/WPChill/strong-testimonials/issues/292) )
16
+ - Changed: Updated the "Goodbye" form interface on plugin deactivation ( [#308](https://github.com/WPChill/strong-testimonials/issues/308) )
17
 
18
  = 2.51.9 - 04.04.2022 =
19
  - Changed: Replaced the Welcome page and now only appears on new/fresh installs
20
 
21
  = 2.51.8 - 28.03.2022 =
22
+ - Fixed: Added filter to remove Upgrade from PRO when max license ( [#305](https://github.com/WPChill/strong-testimonials/issues/305) )
23
 
24
  = 2.51.7 - 21.03.2022 =
25
+ - Added: Lite vs Pro page ( [#167](https://github.com/WPChill/strong-testimonials/issues/167) )
26
+ - Added: Upgrade to PRO action link in the plugins page ( [#303](https://github.com/WPChill/strong-testimonials/issues/303) )
27
 
28
  = 2.51.6 - 15.09.2021 =
29
+ - Fixed upsells for wp 5.8.1 ( [#281](https://github.com/WPChill/strong-testimonials/issues/281) )
30
  - Added: Tracking option - allow us to track non-sensitive data, only information regarding the WordPress environment and Strong Testimonials settings
31
 
32
  = v2.51.5 - 29/07/2021 =
33
  - Fixed: Columns and Grid css display bug, removed not needed class from testimonial content
34
 
35
  = v2.51.5 - 20/07/2021 =
36
+ - Changed: The field for “Company Name” doesn't appear anymore in the list of default fields when creating a new view, if it has been removed via the form editor. ( [#240](https://github.com/WPChill/strong-testimonials/issues/240) )
37
+ - Changed: JQuery Strong slider public methods in order to allow users to acces public methods of bxSlider ( [#233](https://github.com/WPChill/strong-testimonials/issues/233) )
38
+ - Fixed: The Read More link display bug ( [#245](https://github.com/WPChill/strong-testimonials/issues/245) )
39
+ - Fixed: Undefined index ( [#249](https://github.com/WPChill/strong-testimonials/issues/249) )
40
+ - Fixed: Incompatibility problem with Swift Performance related to lazy load ( [#254](https://github.com/WPChill/strong-testimonials/issues/254) )
41
+ - Fixed: Error on slider arrows on the Wave accesibility report ( [#253](https://github.com/WPChill/strong-testimonials/issues/253) )
42
+ - Fixed: Extra pagination ID or slug sanitize issue from View ( [#246](https://github.com/WPChill/strong-testimonials/issues/246) )
43
+ - Fixed: Title setting sanitize issue from View ( [#241](https://github.com/WPChill/strong-testimonials/issues/241) )
44
+ - Fixed: Unstyled Template issue with grid layout and pagination ( [#242](https://github.com/WPChill/strong-testimonials/issues/242) )
45
+ - Fixed: Security fix with input escaping ( [#269](https://github.com/WPChill/strong-testimonials/issues/269) )
46
+ - Fixed: Notice when activating the plugin or entering CPT ( [#272](https://github.com/WPChill/strong-testimonials/issues/272) )
47
+ - Fixed: Complete data for uninstall process ( [#264](https://github.com/WPChill/strong-testimonials/issues/264) )
48
+ - Fixed: Copy shortcode functionality ( [#265](https://github.com/WPChill/strong-testimonials/issues/265) )
49
+ - Changed: Upsell messages display ( [#262](https://github.com/WPChill/strong-testimonials/issues/262) )
50
+ - Changed: Noopener and Noreferrer links ON by default ( [#257](https://github.com/WPChill/strong-testimonials/issues/257) )
51
+ - Fixed: WAVE accessibility report ( [#253](https://github.com/WPChill/strong-testimonials/issues/253) )
52
+ - Fixed: Maximum title length ( [#256](https://github.com/WPChill/strong-testimonials/issues/256) )
53
 
54
 
55
 
59
 
60
 
61
  = v2.51.3 - 16/03/2021 =
62
+ - Changed: View backend in order to be more customizable ( [#222](https://github.com/WPChill/strong-testimonials/issues/222) )
63
+ - Added: A class to disabled class for each template ( [#210](https://github.com/WPChill/strong-testimonials/issues/210) )
64
+ - Fixed: Incompatibility between DIVI builder and testimonials'excerpt display ( [#231](https://github.com/WPChill/strong-testimonials/issues/231) )
65
+ - Fixed: Sanitization issue ( [#236](https://github.com/WPChill/strong-testimonials/issues/236) )
66
 
67
  = v2.51.2 - 24/02/2021 =
68
+ - Fixed: Manual excerpt ( [#220](https://github.com/WPChill/strong-testimonials/issues/220) )
69
 
70
  = v2.51.1 - 18/02/2021 =
71
  - Fixed: Extensions page CSS.
72
 
73
  = v2.51.0 - 18/02/2021 =
74
+ - Changed: Added by default review field to ST form ( [#199](https://github.com/WPChill/strong-testimonials/issues/199) )
75
+ - Changed: Improved security ( [#200](https://github.com/WPChill/strong-testimonials/issues/200) )
76
+ - Changed: Upsell texts & design ( [#201](https://github.com/WPChill/strong-testimonials/issues/204 / https://github.com/WPChill/strong-testimonials/issues/201) )
77
+ - Fixed: Addon page design ( [#202](https://github.com/WPChill/strong-testimonials/issues/202) )
78
+ - Fixed: How excerpt were handled, now when you click read more the excerpt will hide and we will show only the full content ( [#207](https://github.com/WPChill/strong-testimonials/issues/207) )
79
+ - Fixed: Show on Checked Value string without escape characters(/) ( [#209](https://github.com/WPChill/strong-testimonials/issues/209) )
80
+ - Fixed: Keep HTML markup in a testimonial post intact ( [#206](https://github.com/WPChill/strong-testimonials/issues/206) )
81
+ - Fixed: How RTL work with our slideshow ( [#203](https://github.com/WPChill/strong-testimonials/issues/203) )
82
 
83
  = 2.50.4 =
84
  * Added Welcome Banner when Strong Testimonials is activated.
176
  = 2.39.3 - Aug. 05, 2019 =
177
  * removed MIME duplicate header information from the mail sent when submitting a new testimonial
178
  * improved compatibility with Strong Testimonials: Advanced Views and Pro Templates extensions
179
+ * Fixed warnings ( [#80](https://github.com/MachoThemes/strong-testimonials/issues/80) )
180
 
181
  = 2.39.2 - Jun. 25, 2019 =
182
  * improved compatibility with Strong Testimonials: Advanced Views extension
includes/functions-rating.php CHANGED
@@ -28,6 +28,7 @@ function wpmtst_star_rating_form( $field, $value, $class, $echo = true, $field_a
28
  <path class="star_regular" d="M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z"></path>
29
  <path class="star_solid" d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"></path>
30
  </svg>';
 
31
  ob_start(); ?>
32
  <div class="strong-rating-wrapper field-wrap <?php echo esc_attr( $class ); ?>"><!-- cheap trick to collapse whitespace around inline-blocks
33
  --><fieldset contenteditable=false
@@ -38,23 +39,23 @@ function wpmtst_star_rating_form( $field, $value, $class, $echo = true, $field_a
38
  tabindex="0">
39
  <legend><?php esc_html_e('rating fields', 'strong-testimonials' ) ?></legend><!--
40
 
41
- --><input type="radio" id="<?php echo esc_attr( $field['name'] ); ?>-star0" name="<?php echo esc_attr( $name ); ?>" value="0" <?php checked( $value, 0 ); ?> /><!--
42
- --><label for="<?php echo esc_attr( $field['name'] ); ?>-star0" title="No stars"></label><!--
43
 
44
- --><input type="radio" id="<?php echo esc_attr( $field['name'] ); ?>-star1" name="<?php echo esc_attr( $name ); ?>" value="1" <?php checked( $value, 1 ); ?> /><!--
45
- --><label for="<?php echo esc_attr( $field['name'] ); ?>-star1" class="star" title="1 star"><?php echo $star_regular; ?></label><!--
46
 
47
- --><input type="radio" id="<?php echo esc_attr( $field['name'] ); ?>-star2" name="<?php echo esc_attr( $name ); ?>" value="2" <?php checked( $value, 2 ); ?> /><!--
48
- --><label for="<?php echo esc_attr( $field['name'] ); ?>-star2" class="star" title="2 stars"><?php echo $star_regular; ?></label><!--
49
 
50
- --><input type="radio" id="<?php echo esc_attr( $field['name'] ); ?>-star3" name="<?php echo esc_attr( $name ); ?>" value="3" <?php checked( $value, 3 ); ?> /><!--
51
- --><label for="<?php echo esc_attr( $field['name'] ); ?>-star3" class="star" title="3 stars"><?php echo $star_regular; ?></label><!--
52
 
53
- --><input type="radio" id="<?php echo esc_attr( $field['name'] ); ?>-star4" name="<?php echo esc_attr( $name ); ?>" value="4" <?php checked( $value, 4 ); ?> /><!--
54
- --><label for="<?php echo esc_attr( $field['name'] ); ?>-star4" class="star" title="4 stars"><?php echo $star_regular; ?></label><!--
55
 
56
- --><input type="radio" id="<?php echo esc_attr( $field['name'] ); ?>-star5" name="<?php echo esc_attr( $name ); ?>" value="5" <?php checked( $value, 5 ); ?> /><!--
57
- --><label for="<?php echo esc_attr( $field['name'] ); ?>-star5" class="star" title="5 stars"><?php echo $star_regular; ?></label><!--
58
 
59
  --></fieldset><!--
60
  --></div>
28
  <path class="star_regular" d="M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z"></path>
29
  <path class="star_solid" d="M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"></path>
30
  </svg>';
31
+ $random = wp_rand(1, 9999);
32
  ob_start(); ?>
33
  <div class="strong-rating-wrapper field-wrap <?php echo esc_attr( $class ); ?>"><!-- cheap trick to collapse whitespace around inline-blocks
34
  --><fieldset contenteditable=false
39
  tabindex="0">
40
  <legend><?php esc_html_e('rating fields', 'strong-testimonials' ) ?></legend><!--
41
 
42
+ --><input type="radio" id="<?php echo esc_attr( $field['name'] ); ?>-star0-<?php echo absint( $random ); ?>" name="<?php echo esc_attr( $name ); ?>" value="0" <?php checked( $value, 0 ); ?> /><!--
43
+ --><label for="<?php echo esc_attr( $field['name'] ); ?>-star0-<?php echo absint( $random ); ?>" title="No stars"></label><!--
44
 
45
+ --><input type="radio" id="<?php echo esc_attr( $field['name'] ); ?>-star1-<?php echo absint( $random ); ?>" name="<?php echo esc_attr( $name ); ?>" value="1" <?php checked( $value, 1 ); ?> /><!--
46
+ --><label for="<?php echo esc_attr( $field['name'] ); ?>-star1-<?php echo absint( $random ); ?>" class="star" title="1 star"><?php echo $star_regular; ?></label><!--
47
 
48
+ --><input type="radio" id="<?php echo esc_attr( $field['name'] ); ?>-star2-<?php echo absint( $random ); ?>" name="<?php echo esc_attr( $name ); ?>" value="2" <?php checked( $value, 2 ); ?> /><!--
49
+ --><label for="<?php echo esc_attr( $field['name'] ); ?>-star2-<?php echo absint( $random ); ?>" class="star" title="2 stars"><?php echo $star_regular; ?></label><!--
50
 
51
+ --><input type="radio" id="<?php echo esc_attr( $field['name'] ); ?>-star3-<?php echo absint( $random ); ?>" name="<?php echo esc_attr( $name ); ?>" value="3" <?php checked( $value, 3 ); ?> /><!--
52
+ --><label for="<?php echo esc_attr( $field['name'] ); ?>-star3-<?php echo absint( $random ); ?>" class="star" title="3 stars"><?php echo $star_regular; ?></label><!--
53
 
54
+ --><input type="radio" id="<?php echo esc_attr( $field['name'] ); ?>-star4-<?php echo absint( $random ); ?>" name="<?php echo esc_attr( $name ); ?>" value="4" <?php checked( $value, 4 ); ?> /><!--
55
+ --><label for="<?php echo esc_attr( $field['name'] ); ?>-star4-<?php echo absint( $random ); ?>" class="star" title="4 stars"><?php echo $star_regular; ?></label><!--
56
 
57
+ --><input type="radio" id="<?php echo esc_attr( $field['name'] ); ?>-star5-<?php echo absint( $random ); ?>" name="<?php echo esc_attr( $name ); ?>" value="5" <?php checked( $value, 5 ); ?> /><!--
58
+ --><label for="<?php echo esc_attr( $field['name'] ); ?>-star5-<?php echo absint( $random ); ?>" class="star" title="5 stars"><?php echo $star_regular; ?></label><!--
59
 
60
  --></fieldset><!--
61
  --></div>
includes/logs/class-strong-testimonials-logger.php CHANGED
@@ -161,12 +161,15 @@ class Strong_File_Logging {
161
  */
162
  public function handle_actions() {
163
 
164
- if ( ! empty( $_REQUEST['remove'] ) ) { // phpcs:ignore input var ok, CSRF ok.
165
- $this->remove_log();
166
- }
 
 
167
 
168
- if ( ! empty( $_REQUEST['download'] ) ) { // phpcs:ignore input var ok, CSRF ok.
169
- $this->download_log();
 
170
  }
171
  }
172
 
@@ -199,8 +202,8 @@ class Strong_File_Logging {
199
  wp_die( esc_html__( 'Action failed. Please refresh the page and retry.', 'strong-testimonials' ) );
200
  }
201
 
202
- if ( ! empty( $_REQUEST['remove'] ) ) { // phpcs:ignore input var ok.
203
- $this->remove( wp_unslash( $_REQUEST['remove'] ), wp_unslash( $_REQUEST['subdir'] ) ); // phpcs:ignore input var ok, sanitization ok.
204
  }
205
 
206
  wp_safe_redirect( esc_url_raw( admin_url( 'edit.php?post_type=wpm-testimonial&page=strong-testimonials-logs' ) ) );
@@ -244,8 +247,8 @@ class Strong_File_Logging {
244
  wp_die( esc_html__( 'Action failed. Please refresh the page and retry.', 'strong-testimonials' ) );
245
  }
246
 
247
- if ( ! empty( $_REQUEST['download'] ) ) { // phpcs:ignore input var ok.
248
- $this->download( wp_unslash( $_REQUEST['download'] ), wp_unslash( $_REQUEST['subdir'] ) ); // phpcs:ignore input var ok, sanitization ok.
249
  }
250
 
251
  }
161
  */
162
  public function handle_actions() {
163
 
164
+ if( isset( $_GET['post_type'] ) && isset( $_GET['page'] ) && 'wpm-testimonial' === $_GET['post_type'] && 'strong-testimonials-logs' === $_GET['page']){
165
+
166
+ if ( ! empty( $_REQUEST['st_log_remove'] ) ) { // phpcs:ignore input var ok, CSRF ok.
167
+ $this->remove_log();
168
+ }
169
 
170
+ if ( ! empty( $_REQUEST['st_log_download'] ) ) { // phpcs:ignore input var ok, CSRF ok.
171
+ $this->download_log();
172
+ }
173
  }
174
  }
175
 
202
  wp_die( esc_html__( 'Action failed. Please refresh the page and retry.', 'strong-testimonials' ) );
203
  }
204
 
205
+ if ( ! empty( $_REQUEST['st_log_remove'] ) ) { // phpcs:ignore input var ok.
206
+ $this->remove( wp_unslash( $_REQUEST['st_log_remove'] ), wp_unslash( $_REQUEST['subdir'] ) ); // phpcs:ignore input var ok, sanitization ok.
207
  }
208
 
209
  wp_safe_redirect( esc_url_raw( admin_url( 'edit.php?post_type=wpm-testimonial&page=strong-testimonials-logs' ) ) );
247
  wp_die( esc_html__( 'Action failed. Please refresh the page and retry.', 'strong-testimonials' ) );
248
  }
249
 
250
+ if ( ! empty( $_REQUEST['st_log_download'] ) ) { // phpcs:ignore input var ok.
251
+ $this->download( wp_unslash( $_REQUEST['st_log_download'] ), wp_unslash( $_REQUEST['subdir'] ) ); // phpcs:ignore input var ok, sanitization ok.
252
  }
253
 
254
  }
includes/logs/html-strong-testimonials-logs-viewer.php CHANGED
@@ -26,7 +26,7 @@ if ( $logs ) : ?>
26
  wp_nonce_url(
27
  add_query_arg(
28
  array(
29
- 'remove' => sanitize_title( $log_name ),
30
  'subdir' => sanitize_title( $subfolder ),
31
  ),
32
  admin_url( 'edit.php?post_type=wpm-testimonial&page=strong-testimonials-logs' )
@@ -42,7 +42,7 @@ if ( $logs ) : ?>
42
  wp_nonce_url(
43
  add_query_arg(
44
  array(
45
- 'download' => sanitize_title( $log_name ),
46
  'subdir' => sanitize_title( $subfolder ),
47
  ),
48
  admin_url( 'edit.php?post_type=wpm-testimonial&page=strong-testimonials-logs' )
26
  wp_nonce_url(
27
  add_query_arg(
28
  array(
29
+ 'st_log_remove' => sanitize_title( $log_name ),
30
  'subdir' => sanitize_title( $subfolder ),
31
  ),
32
  admin_url( 'edit.php?post_type=wpm-testimonial&page=strong-testimonials-logs' )
42
  wp_nonce_url(
43
  add_query_arg(
44
  array(
45
+ 'st_log_download' => sanitize_title( $log_name ),
46
  'subdir' => sanitize_title( $subfolder ),
47
  ),
48
  admin_url( 'edit.php?post_type=wpm-testimonial&page=strong-testimonials-logs' )
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: wpchill,silkalns,cdillon27
3
  Tags: testimonials, testimonial slider, testimonial form, star ratings
4
  Requires at least: 5.2
5
  Requires PHP: 5.6
6
- Tested up to: 6.0
7
- Stable tag: 3.0.1
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -207,54 +207,58 @@ No. If you already have testimonials in another plugin or theme, you will have t
207
 
208
  == Changelog ==
209
 
 
 
 
 
210
  = 3.0.1 - 18.08.2022 -
211
- - Fixed: strongValidation error on front form ( https://github.com/WPChill/strong-testimonials/issues/326 )
212
  - Added: Advanced settings tab and logging system
213
 
214
  = 3.0.0 - 18.07.2022 -
215
  - Added: Optional parameter to function wpmtst_get_success_message
216
- - Added: Added an "alt" tag for the submission form's spinner image ( https://github.com/WPChill/strong-testimonials/issues/291 )
217
  - Fixed: Fatal error in shortcode when decimals attribute from shortcode was not a number but a string
218
- - Fixed: Small typo on admin side ( https://github.com/WPChill/strong-testimonials/issues/290 )
219
- - Fixed: Minor escape bug in admin area ( https://github.com/WPChill/strong-testimonials/issues/286 )
220
- - Changed: Updated jQuery Validate version to 1.19.5 ( https://github.com/WPChill/strong-testimonials/issues/292 )
221
- - Changed: Updated the "Goodbye" form interface on plugin deactivation ( https://github.com/WPChill/strong-testimonials/issues/308 )
222
 
223
  = 2.51.9 - 04.04.2022 =
224
  - Changed: Replaced the Welcome page and now only appears on new/fresh installs
225
 
226
  = 2.51.8 - 28.03.2022 =
227
- - Fixed: Added filter to remove Upgrade from PRO when max license ( https://github.com/WPChill/strong-testimonials/issues/305 )
228
 
229
  = 2.51.7 - 21.03.2022 =
230
- - Added: Lite vs Pro page ( https://github.com/WPChill/strong-testimonials/issues/167 )
231
- - Added: Upgrade to PRO action link in the plugins page ( https://github.com/WPChill/strong-testimonials/issues/303 )
232
 
233
  = 2.51.6 - 15.09.2021 =
234
- - Fixed upsells for wp 5.8.1 ( https://github.com/WPChill/strong-testimonials/issues/281 )
235
  - Added: Tracking option - allow us to track non-sensitive data, only information regarding the WordPress environment and Strong Testimonials settings
236
 
237
  = v2.51.5 - 29/07/2021 =
238
  - Fixed: Columns and Grid css display bug, removed not needed class from testimonial content
239
 
240
  = v2.51.5 - 20/07/2021 =
241
- - Changed: The field for “Company Name” doesn't appear anymore in the list of default fields when creating a new view, if it has been removed via the form editor. ( https://github.com/WPChill/strong-testimonials/issues/240 )
242
- - Changed: JQuery Strong slider public methods in order to allow users to acces public methods of bxSlider ( https://github.com/WPChill/strong-testimonials/issues/233 )
243
- - Fixed: The Read More link display bug ( https://github.com/WPChill/strong-testimonials/issues/245 )
244
- - Fixed: Undefined index ( https://github.com/WPChill/strong-testimonials/issues/249 )
245
- - Fixed: Incompatibility problem with Swift Performance related to lazy load ( https://github.com/WPChill/strong-testimonials/issues/254 )
246
- - Fixed: Error on slider arrows on the Wave accesibility report ( https://github.com/WPChill/strong-testimonials/issues/253 )
247
- - Fixed: Extra pagination ID or slug sanitize issue from View ( https://github.com/WPChill/strong-testimonials/issues/246 )
248
- - Fixed: Title setting sanitize issue from View ( https://github.com/WPChill/strong-testimonials/issues/241 )
249
- - Fixed: Unstyled Template issue with grid layout and pagination ( https://github.com/WPChill/strong-testimonials/issues/242 )
250
- - Fixed: Security fix with input escaping ( https://github.com/WPChill/strong-testimonials/issues/269 )
251
- - Fixed: Notice when activating the plugin or entering CPT ( https://github.com/WPChill/strong-testimonials/issues/272 )
252
- - Fixed: Complete data for uninstall process ( https://github.com/WPChill/strong-testimonials/issues/264 )
253
- - Fixed: Copy shortcode functionality ( https://github.com/WPChill/strong-testimonials/issues/265 )
254
- - Changed: Upsell messages display ( https://github.com/WPChill/strong-testimonials/issues/262 )
255
- - Changed: Noopener and Noreferrer links ON by default ( https://github.com/WPChill/strong-testimonials/issues/257 )
256
- - Fixed: WAVE accessibility report ( https://github.com/WPChill/strong-testimonials/issues/253 )
257
- - Fixed: Maximum title length ( https://github.com/WPChill/strong-testimonials/issues/256 )
258
 
259
 
260
 
@@ -264,26 +268,26 @@ No. If you already have testimonials in another plugin or theme, you will have t
264
 
265
 
266
  = v2.51.3 - 16/03/2021 =
267
- - Changed: View backend in order to be more customizable ( https://github.com/WPChill/strong-testimonials/issues/222 )
268
- - Added: A class to disabled class for each template ( https://github.com/WPChill/strong-testimonials/issues/210 )
269
- - Fixed: Incompatibility between DIVI builder and testimonials'excerpt display ( https://github.com/WPChill/strong-testimonials/issues/231 )
270
- - Fixed: Sanitization issue ( https://github.com/WPChill/strong-testimonials/issues/236 )
271
 
272
  = v2.51.2 - 24/02/2021 =
273
- - Fixed: Manual excerpt ( https://github.com/WPChill/strong-testimonials/issues/220 )
274
 
275
  = v2.51.1 - 18/02/2021 =
276
  - Fixed: Extensions page CSS.
277
 
278
  = v2.51.0 - 18/02/2021 =
279
- - Changed: Added by default review field to ST form ( https://github.com/WPChill/strong-testimonials/issues/199 )
280
- - Changed: Improved security (https://github.com/WPChill/strong-testimonials/issues/200)
281
- - Changed: Upsell texts & design (https://github.com/WPChill/strong-testimonials/issues/204 / https://github.com/WPChill/strong-testimonials/issues/201)
282
- - Fixed: Addon page design (https://github.com/WPChill/strong-testimonials/issues/202)
283
- - Fixed: How excerpt were handled, now when you click read more the excerpt will hide and we will show only the full content ( https://github.com/WPChill/strong-testimonials/issues/207 )
284
- - Fixed: Show on Checked Value string without escape characters(/) ( https://github.com/WPChill/strong-testimonials/issues/209 )
285
- - Fixed: Keep HTML markup in a testimonial post intact ( https://github.com/WPChill/strong-testimonials/issues/206 )
286
- - Fixed: How RTL work with our slideshow ( https://github.com/WPChill/strong-testimonials/issues/203 )
287
 
288
  = 2.50.4 =
289
  * Added Welcome Banner when Strong Testimonials is activated.
@@ -381,7 +385,7 @@ No. If you already have testimonials in another plugin or theme, you will have t
381
  = 2.39.3 - Aug. 05, 2019 =
382
  * removed MIME duplicate header information from the mail sent when submitting a new testimonial
383
  * improved compatibility with Strong Testimonials: Advanced Views and Pro Templates extensions
384
- * Fixed warnings ( https://github.com/MachoThemes/strong-testimonials/issues/80 )
385
 
386
  = 2.39.2 - Jun. 25, 2019 =
387
  * improved compatibility with Strong Testimonials: Advanced Views extension
3
  Tags: testimonials, testimonial slider, testimonial form, star ratings
4
  Requires at least: 5.2
5
  Requires PHP: 5.6
6
+ Tested up to: 6.1
7
+ Stable tag: 3.0.2
8
  License: GPLv3 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
207
 
208
  == Changelog ==
209
 
210
+ = 3.0.2 - 24.08.2022 -
211
+ - Fixed: Star rating input for multiple forms on page ( [#322](https://github.com/WPChill/strong-testimonials/issues/322) )
212
+ - Fixed: Conflicts with other plugins ( [#330](https://github.com/WPChill/strong-testimonials/issues/330) )
213
+
214
  = 3.0.1 - 18.08.2022 -
215
+ - Fixed: strongValidation error on front form ( [#326](https://github.com/WPChill/strong-testimonials/issues/326) )
216
  - Added: Advanced settings tab and logging system
217
 
218
  = 3.0.0 - 18.07.2022 -
219
  - Added: Optional parameter to function wpmtst_get_success_message
220
+ - Added: Added an "alt" tag for the submission form's spinner image ( [#291](https://github.com/WPChill/strong-testimonials/issues/291) )
221
  - Fixed: Fatal error in shortcode when decimals attribute from shortcode was not a number but a string
222
+ - Fixed: Small typo on admin side ( [#290](https://github.com/WPChill/strong-testimonials/issues/290) )
223
+ - Fixed: Minor escape bug in admin area ( [#286](https://github.com/WPChill/strong-testimonials/issues/286) )
224
+ - Changed: Updated jQuery Validate version to 1.19.5 ( [#292](https://github.com/WPChill/strong-testimonials/issues/292) )
225
+ - Changed: Updated the "Goodbye" form interface on plugin deactivation ( [#308](https://github.com/WPChill/strong-testimonials/issues/308) )
226
 
227
  = 2.51.9 - 04.04.2022 =
228
  - Changed: Replaced the Welcome page and now only appears on new/fresh installs
229
 
230
  = 2.51.8 - 28.03.2022 =
231
+ - Fixed: Added filter to remove Upgrade from PRO when max license ( [#305](https://github.com/WPChill/strong-testimonials/issues/305) )
232
 
233
  = 2.51.7 - 21.03.2022 =
234
+ - Added: Lite vs Pro page ( [#167](https://github.com/WPChill/strong-testimonials/issues/167) )
235
+ - Added: Upgrade to PRO action link in the plugins page ( [#303](https://github.com/WPChill/strong-testimonials/issues/303) )
236
 
237
  = 2.51.6 - 15.09.2021 =
238
+ - Fixed upsells for wp 5.8.1 ( [#281](https://github.com/WPChill/strong-testimonials/issues/281) )
239
  - Added: Tracking option - allow us to track non-sensitive data, only information regarding the WordPress environment and Strong Testimonials settings
240
 
241
  = v2.51.5 - 29/07/2021 =
242
  - Fixed: Columns and Grid css display bug, removed not needed class from testimonial content
243
 
244
  = v2.51.5 - 20/07/2021 =
245
+ - Changed: The field for “Company Name” doesn't appear anymore in the list of default fields when creating a new view, if it has been removed via the form editor. ( [#240](https://github.com/WPChill/strong-testimonials/issues/240) )
246
+ - Changed: JQuery Strong slider public methods in order to allow users to acces public methods of bxSlider ( [#233](https://github.com/WPChill/strong-testimonials/issues/233) )
247
+ - Fixed: The Read More link display bug ( [#245](https://github.com/WPChill/strong-testimonials/issues/245) )
248
+ - Fixed: Undefined index ( [#249](https://github.com/WPChill/strong-testimonials/issues/249) )
249
+ - Fixed: Incompatibility problem with Swift Performance related to lazy load ( [#254](https://github.com/WPChill/strong-testimonials/issues/254) )
250
+ - Fixed: Error on slider arrows on the Wave accesibility report ( [#253](https://github.com/WPChill/strong-testimonials/issues/253) )
251
+ - Fixed: Extra pagination ID or slug sanitize issue from View ( [#246](https://github.com/WPChill/strong-testimonials/issues/246) )
252
+ - Fixed: Title setting sanitize issue from View ( [#241](https://github.com/WPChill/strong-testimonials/issues/241) )
253
+ - Fixed: Unstyled Template issue with grid layout and pagination ( [#242](https://github.com/WPChill/strong-testimonials/issues/242) )
254
+ - Fixed: Security fix with input escaping ( [#269](https://github.com/WPChill/strong-testimonials/issues/269) )
255
+ - Fixed: Notice when activating the plugin or entering CPT ( [#272](https://github.com/WPChill/strong-testimonials/issues/272) )
256
+ - Fixed: Complete data for uninstall process ( [#264](https://github.com/WPChill/strong-testimonials/issues/264) )
257
+ - Fixed: Copy shortcode functionality ( [#265](https://github.com/WPChill/strong-testimonials/issues/265) )
258
+ - Changed: Upsell messages display ( [#262](https://github.com/WPChill/strong-testimonials/issues/262) )
259
+ - Changed: Noopener and Noreferrer links ON by default ( [#257](https://github.com/WPChill/strong-testimonials/issues/257) )
260
+ - Fixed: WAVE accessibility report ( [#253](https://github.com/WPChill/strong-testimonials/issues/253) )
261
+ - Fixed: Maximum title length ( [#256](https://github.com/WPChill/strong-testimonials/issues/256) )
262
 
263
 
264
 
268
 
269
 
270
  = v2.51.3 - 16/03/2021 =
271
+ - Changed: View backend in order to be more customizable ( [#222](https://github.com/WPChill/strong-testimonials/issues/222) )
272
+ - Added: A class to disabled class for each template ( [#210](https://github.com/WPChill/strong-testimonials/issues/210) )
273
+ - Fixed: Incompatibility between DIVI builder and testimonials'excerpt display ( [#231](https://github.com/WPChill/strong-testimonials/issues/231) )
274
+ - Fixed: Sanitization issue ( [#236](https://github.com/WPChill/strong-testimonials/issues/236) )
275
 
276
  = v2.51.2 - 24/02/2021 =
277
+ - Fixed: Manual excerpt ( [#220](https://github.com/WPChill/strong-testimonials/issues/220) )
278
 
279
  = v2.51.1 - 18/02/2021 =
280
  - Fixed: Extensions page CSS.
281
 
282
  = v2.51.0 - 18/02/2021 =
283
+ - Changed: Added by default review field to ST form ( [#199](https://github.com/WPChill/strong-testimonials/issues/199) )
284
+ - Changed: Improved security ( [#200](https://github.com/WPChill/strong-testimonials/issues/200) )
285
+ - Changed: Upsell texts & design ( [#201](https://github.com/WPChill/strong-testimonials/issues/204 / https://github.com/WPChill/strong-testimonials/issues/201) )
286
+ - Fixed: Addon page design ( [#202](https://github.com/WPChill/strong-testimonials/issues/202) )
287
+ - Fixed: How excerpt were handled, now when you click read more the excerpt will hide and we will show only the full content ( [#207](https://github.com/WPChill/strong-testimonials/issues/207) )
288
+ - Fixed: Show on Checked Value string without escape characters(/) ( [#209](https://github.com/WPChill/strong-testimonials/issues/209) )
289
+ - Fixed: Keep HTML markup in a testimonial post intact ( [#206](https://github.com/WPChill/strong-testimonials/issues/206) )
290
+ - Fixed: How RTL work with our slideshow ( [#203](https://github.com/WPChill/strong-testimonials/issues/203) )
291
 
292
  = 2.50.4 =
293
  * Added Welcome Banner when Strong Testimonials is activated.
385
  = 2.39.3 - Aug. 05, 2019 =
386
  * removed MIME duplicate header information from the mail sent when submitting a new testimonial
387
  * improved compatibility with Strong Testimonials: Advanced Views and Pro Templates extensions
388
+ * Fixed warnings ( [#80](https://github.com/MachoThemes/strong-testimonials/issues/80) )
389
 
390
  = 2.39.2 - Jun. 25, 2019 =
391
  * improved compatibility with Strong Testimonials: Advanced Views extension
strong-testimonials.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Collect and display your testimonials or reviews.
6
  * Author: WPChill
7
  * Author URI: https://wpchill.com/
8
- * Version: 3.0.1
9
  * Text Domain: strong-testimonials
10
  * Domain Path: /languages
11
  * Requires: 4.6 or higher
@@ -45,7 +45,7 @@ if ( ! defined( 'ABSPATH' ) ) {
45
  exit;
46
  }
47
 
48
- define( 'WPMTST_VERSION', '3.0.1' );
49
  define( 'WPMTST_PLUGIN', plugin_basename( __FILE__ ) ); // strong-testimonials/strong-testimonials.php
50
  define( 'WPMTST', dirname( WPMTST_PLUGIN ) ); // strong-testimonials
51
  define( 'WPMTST_LOGS', wp_upload_dir()['basedir']. '/st-logs/' );
5
  * Description: Collect and display your testimonials or reviews.
6
  * Author: WPChill
7
  * Author URI: https://wpchill.com/
8
+ * Version: 3.0.2
9
  * Text Domain: strong-testimonials
10
  * Domain Path: /languages
11
  * Requires: 4.6 or higher
45
  exit;
46
  }
47
 
48
+ define( 'WPMTST_VERSION', '3.0.2' );
49
  define( 'WPMTST_PLUGIN', plugin_basename( __FILE__ ) ); // strong-testimonials/strong-testimonials.php
50
  define( 'WPMTST', dirname( WPMTST_PLUGIN ) ); // strong-testimonials
51
  define( 'WPMTST_LOGS', wp_upload_dir()['basedir']. '/st-logs/' );