Skip to content

Commit

Permalink
Merge pull request #154 from MyThemeShopTeam/v5.3.2
Browse files Browse the repository at this point in the history
v5.3.2
  • Loading branch information
truong-mts authored Apr 9, 2020
2 parents 0df7983 + 530e4fc commit fab01f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3615,7 +3615,7 @@ function wp_review_facebook_page_review_schema( $review, $page ) {
* @param string $type Rating type.
* @return float
*/
function wp_review_normalize_rating_value( $value, $type ) {
function wp_review_normalize_rating_value( $value, $type = 'star' ) {
$rating_type = wp_review_get_rating_type_data( $type );
if ( ! $rating_type ) {
return $value;
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Creator's website link: http://mythemeshop.com/plugins/wp-review/
Tags: review, schema.org, rating, schema, user rating, google rating, star rating, product review
Requires at least: 4.9
Tested up to: 5.4
Stable tag: 5.3.1
Stable tag: 5.3.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -151,6 +151,9 @@ There are two ways you can do this. You can update the plugin by downloading a f

== Changelog ==

= v5.3.2 (Apr 9, 2020) =
* Fixed `Fatal error: Uncaught ArgumentCountError` appearing on some installations

= v5.3.1 (Apr 8, 2020) =
* Improved Weeblramp plugin integration
* Fixed wrong decimal of rating value in the schema output
Expand Down
4 changes: 2 additions & 2 deletions wp-review.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: WP Review
* Plugin URI: http://mythemeshop.com/plugins/wp-review/
* Description: Create reviews! Choose from stars, percentages or points for review scores. Supports Retina Display, WPMU and Unlimited Color Schemes.
* Version: 5.3.1
* Version: 5.3.2
* Author: MyThemeShop
* Author URI: http://mythemeshop.com/
* Text Domain: wp-review
Expand Down Expand Up @@ -46,7 +46,7 @@ function wp_review_php_upgrade_notice() {
}

/* Plugin version */
define( 'WP_REVIEW_PLUGIN_VERSION', '5.3.1' );
define( 'WP_REVIEW_PLUGIN_VERSION', '5.3.2' );

/* Sets the custom db table name. */
define( 'MTS_WP_REVIEW_DB_TABLE', 'mts_wp_reviews' );
Expand Down

0 comments on commit fab01f6

Please sign in to comment.