diff --git a/includes/functions.php b/includes/functions.php index 7777b94..ec8c93e 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -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; diff --git a/readme.txt b/readme.txt index 203cbf9..8014f7a 100644 --- a/readme.txt +++ b/readme.txt @@ -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 @@ -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 diff --git a/wp-review.php b/wp-review.php index 1260d76..0f79f0e 100755 --- a/wp-review.php +++ b/wp-review.php @@ -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 @@ -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' );