Changeset 2619856
- Timestamp:
- 10/26/2021 05:53:07 AM (4 years ago)
- Location:
- wp-customer-reviews/trunk
- Files:
-
- 3 edited
-
changelog.txt (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wp-customer-reviews-3.php (modified) (2 diffs)
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 1 5 = 3.6.1 = 2 6 * 10/20/2021 -
wp-customer-reviews/trunk/readme.txt
r2617376 r2619856 5 5 Requires at least: 3.0.0 6 6 Tested up to: 5.8 7 Stable tag: 3.6. 07 Stable tag: 3.6.2 8 8 License: MIT 9 9 License URI: http://opensource.org/licenses/MIT … … 63 63 == Changelog == 64 64 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 65 69 = 3.6.1 = 66 70 * 10/20/2021 -
wp-customer-reviews/trunk/wp-customer-reviews-3.php
r2617376 r2619856 4 4 * Plugin URI: https://wordpress.org/plugins/wp-customer-reviews/ 5 5 * 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. 16 * Version: 3.6.2 7 7 * Author: Aaron Queen 8 8 * Author URI: https://wordpress.org/plugins/wp-customer-reviews/ … … 297 297 if (count($results)) { 298 298 $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); 300 300 $rtn->aggregate_count_valid = $rtn->aggregate_count > 0; 301 301 $rtn->stars = $this->get_rating_template($rtn->aggregate_rating, false);
Note: See TracChangeset
for help on using the changeset viewer.