Real Testimonials - Version 2.2.17

Version Description

  • Aug 11, 2021 =
  • Fix: Rating value undefine issue.
Download this release

Release Info

Developer shapedplugin
Plugin Icon 128x128 Real Testimonials
Version 2.2.17
Comparing to
See all releases

Code changes from version 2.2.16 to 2.2.17

public/views/shortcoderender.php CHANGED
@@ -334,14 +334,17 @@ if ( ! class_exists( 'TFREE_Shortcode_Render' ) ) {
334
  if ( 'theme-one' === $theme_style ) {
335
  include SP_TFREE_PATH . '/public/views/templates/theme-one.php';
336
  }
337
- $total_rated_testimonials++;
338
- $total_rating_count += ( $star_rating && ! empty( $tfree_rating_star ) ) ? $rating_value : 0;
 
 
339
  endwhile;
340
  } else {
341
  $outline .= '<h2 class="sp-not-testimonial-found">' . esc_html__( 'No testimonials found', 'testimonial-free' ) . '</h2>';
342
  }
343
- $aggregate_rating = round( ( $total_rating_count / $total_rated_testimonials ), 2 );
344
-
 
345
  $outline .= '</div>';
346
  if ( $schema_markup ) {
347
  include SP_TFREE_PATH . '/public/views/schema.php';
334
  if ( 'theme-one' === $theme_style ) {
335
  include SP_TFREE_PATH . '/public/views/templates/theme-one.php';
336
  }
337
+ if ( ! empty( $rating_value ) ) {
338
+ $total_rated_testimonials++;
339
+ $total_rating_count += ( $star_rating && ! empty( $tfree_rating_star ) ) ? $rating_value : 0;
340
+ }
341
  endwhile;
342
  } else {
343
  $outline .= '<h2 class="sp-not-testimonial-found">' . esc_html__( 'No testimonials found', 'testimonial-free' ) . '</h2>';
344
  }
345
+ if ( $total_rated_testimonials !== 0 ) {
346
+ $aggregate_rating = round( ( $total_rating_count / $total_rated_testimonials ), 2 );
347
+ }
348
  $outline .= '</div>';
349
  if ( $schema_markup ) {
350
  include SP_TFREE_PATH . '/public/views/schema.php';
readme.txt CHANGED
@@ -4,6 +4,7 @@ Donate link: http://shapedplugin.com/donate
4
  Tags: testimonial, testimonials, testimonial showcase, testimonials showcase, testimonial slider, testimonials slider, testimonial carousel, testimonial front-end submission form, testimonials widget, easy testimonial, testimonial rotator, random testimonials, custom testimonial, collect testimonials, social proof, simple testimonial plugin, best testimonials showcase plugin, free testimonial, customers reviews
5
  Requires at least: 4.0
6
  Tested up to: 5.8
 
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -193,6 +194,9 @@ Thank you!
193
 
194
  == Changelog ==
195
 
 
 
 
196
  = 2.2.16 - Jul 08, 2021 =
197
  * New: HTML Tag for reviewer full name.
198
  * Fix: Minor tweaking.
4
  Tags: testimonial, testimonials, testimonial showcase, testimonials showcase, testimonial slider, testimonials slider, testimonial carousel, testimonial front-end submission form, testimonials widget, easy testimonial, testimonial rotator, random testimonials, custom testimonial, collect testimonials, social proof, simple testimonial plugin, best testimonials showcase plugin, free testimonial, customers reviews
5
  Requires at least: 4.0
6
  Tested up to: 5.8
7
+ Stable tag: 2.2.17
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
194
 
195
  == Changelog ==
196
 
197
+ = 2.2.17 - Aug 11, 2021 =
198
+ * Fix: Rating value undefine issue.
199
+
200
  = 2.2.16 - Jul 08, 2021 =
201
  * New: HTML Tag for reviewer full name.
202
  * Fix: Minor tweaking.
testimonial-free.php CHANGED
@@ -12,7 +12,7 @@
12
  * Plugin Name: Testimonial
13
  * Plugin URI: https://shapedplugin.com/plugin/testimonial-pro/?ref=1
14
  * Description: Most Customizable and Powerful Testimonials Showcase Plugin for WordPress that allows you to manage and display Testimonials or Reviews on any page or widget.
15
- * Version: 2.2.16
16
  * Author: ShapedPlugin
17
  * Author URI: https://shapedplugin.com/
18
  * Text Domain: testimonial-free
@@ -59,7 +59,7 @@ if ( ! class_exists( 'SP_Testimonial_FREE' ) ) {
59
  *
60
  * @var string
61
  */
62
- public $version = '2.2.16';
63
 
64
  /**
65
  * @var SP_TFREE_Testimonial $shortcode
12
  * Plugin Name: Testimonial
13
  * Plugin URI: https://shapedplugin.com/plugin/testimonial-pro/?ref=1
14
  * Description: Most Customizable and Powerful Testimonials Showcase Plugin for WordPress that allows you to manage and display Testimonials or Reviews on any page or widget.
15
+ * Version: 2.2.17
16
  * Author: ShapedPlugin
17
  * Author URI: https://shapedplugin.com/
18
  * Text Domain: testimonial-free
59
  *
60
  * @var string
61
  */
62
+ public $version = '2.2.17';
63
 
64
  /**
65
  * @var SP_TFREE_Testimonial $shortcode