Plugin Directory

Changeset 2619856


Ignore:
Timestamp:
10/26/2021 05:53:07 AM (4 years ago)
Author:
bompus
Message:

3.6.2

Location:
wp-customer-reviews/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-customer-reviews/trunk/changelog.txt

    r2617376 r2619856  
     1= 3.6.2 =
     2* 10/25/2021
     3* [Bugfix] Fixed bug introduced in 3.6.0 which caused rounding down of aggregate review rating.
     4
    15= 3.6.1 =
    26* 10/20/2021
  • wp-customer-reviews/trunk/readme.txt

    r2617376 r2619856  
    55Requires at least: 3.0.0
    66Tested up to: 5.8
    7 Stable tag: 3.6.0
     7Stable tag: 3.6.2
    88License: MIT
    99License URI: http://opensource.org/licenses/MIT
     
    6363== Changelog ==
    6464
     65= 3.6.2 =
     66* 10/25/2021
     67* [Bugfix] Fixed bug introduced in 3.6.0 which caused rounding down of aggregate review rating.
     68
    6569= 3.6.1 =
    6670* 10/20/2021
  • wp-customer-reviews/trunk/wp-customer-reviews-3.php

    r2617376 r2619856  
    44 * Plugin URI: https://wordpress.org/plugins/wp-customer-reviews/
    55 * Description: Allows your visitors to leave business / product reviews. Testimonials are in Microdata / Microformat and may display star ratings in search results.
    6  * Version: 3.6.1
     6 * Version: 3.6.2
    77 * Author: Aaron Queen
    88 * Author URI: https://wordpress.org/plugins/wp-customer-reviews/
     
    297297        if (count($results)) {
    298298            $rtn->aggregate_count = intval($results[0]->aggregate_count);
    299             $rtn->aggregate_rating = $rtn->aggregate_count === 0 ? 0 : intval($results[0]->aggregate_rating);
     299            $rtn->aggregate_rating = $rtn->aggregate_count === 0 ? 0 : number_format(floatval($results[0]->aggregate_rating), 2);
    300300            $rtn->aggregate_count_valid = $rtn->aggregate_count > 0;
    301301            $rtn->stars = $this->get_rating_template($rtn->aggregate_rating, false);
Note: See TracChangeset for help on using the changeset viewer.