WP Review - Version 5.1.1

Version Description

Download this release

Release Info

Developer MyThemeShop
Plugin Icon 128x128 WP Review
Version 5.1.1
Comparing to
See all releases

Code changes from version 5.1.0 to 5.1.1

includes/widgets/class-wp-review-tab-widget.php CHANGED
@@ -90,7 +90,7 @@ class WP_Review_Tab_Widget extends WP_Widget {
90
  'custom' => __( 'Editor\'s choice', 'wp-review' ),
91
  ),
92
  'allow_pagination' => 1,
93
- 'review_type' => array(),
94
  'post_num' => '5',
95
  'comment_num' => '5',
96
  'thumb_size' => 'small',
@@ -113,7 +113,6 @@ class WP_Review_Tab_Widget extends WP_Widget {
113
  $instance['tab_titles']['recent_ratings'] = __( 'Comments', 'wp-review' );
114
  }
115
  extract( $instance ); // phpcs:ignore
116
- $review_type = (array) $review_type;
117
  ?>
118
  <div class="wp_review_tab_options_form">
119
  <h4><?php esc_html_e( 'Select Tabs', 'wp-review' ); ?></h4>
@@ -166,14 +165,14 @@ class WP_Review_Tab_Widget extends WP_Widget {
166
  <select name="<?php echo esc_attr( $this->get_field_name( 'review_type' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'review_type' ) ); ?>">
167
  <?php
168
  $review_types = wp_review_get_rating_types();
169
- foreach ( $review_types as $name => $review_type ) {
170
- $disabled = ! in_array( $name, array( 'star', 'point', 'percentage' ) );
171
  printf(
172
  '<option value="%1$s" class="%2$s" %3$s>%4$s</option>',
173
  esc_attr( $name ),
174
  $disabled ? 'disabled' : '',
175
- selected( $name, $instance['review_type'], false ),
176
- esc_html( $review_type['label'] )
177
  );
178
  }
179
  ?>
90
  'custom' => __( 'Editor\'s choice', 'wp-review' ),
91
  ),
92
  'allow_pagination' => 1,
93
+ 'review_type' => '',
94
  'post_num' => '5',
95
  'comment_num' => '5',
96
  'thumb_size' => 'small',
113
  $instance['tab_titles']['recent_ratings'] = __( 'Comments', 'wp-review' );
114
  }
115
  extract( $instance ); // phpcs:ignore
 
116
  ?>
117
  <div class="wp_review_tab_options_form">
118
  <h4><?php esc_html_e( 'Select Tabs', 'wp-review' ); ?></h4>
165
  <select name="<?php echo esc_attr( $this->get_field_name( 'review_type' ) ); ?>" id="<?php echo esc_attr( $this->get_field_id( 'review_type' ) ); ?>">
166
  <?php
167
  $review_types = wp_review_get_rating_types();
168
+ foreach ( $review_types as $name => $type ) {
169
+ $disabled = ! in_array( $name, array( 'star', 'point', 'percentage' ), true );
170
  printf(
171
  '<option value="%1$s" class="%2$s" %3$s>%4$s</option>',
172
  esc_attr( $name ),
173
  $disabled ? 'disabled' : '',
174
+ selected( $name, $review_type, false ),
175
+ esc_html( $type['label'] )
176
  );
177
  }
178
  ?>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Creator's website link: http://mythemeshop.com/plugins/wp-review/
4
  Tags: review, wp review, rating, wp rating, user rating, google rating, star rating, product review
5
  Requires at least: 4.0
6
  Tested up to: 4.9.8
7
- Stable tag: 5.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -103,12 +103,16 @@ Please disable all plugins and check if rating is working properly. Then you can
103
 
104
  == Changelog ==
105
 
106
- = v5.1.0 (Oct 13, 2018) =
 
 
 
107
  * Removed unnecessary scripts from the non WP Review admin pages
108
  * Fixed total rating disappearing issue if there are no features
109
  * Fixed inactive color issue bug if color filter is used in the theme
110
  * Fixed no space between HTML attributes
111
  * Fixed compatibility issue with Rank Math plugin
 
112
 
113
  = v5.0.8 (Oct 3, 2018) =
114
  * Fixed adding unnecessary custom field values if the review is not enabled in the post
4
  Tags: review, wp review, rating, wp rating, user rating, google rating, star rating, product review
5
  Requires at least: 4.0
6
  Tested up to: 4.9.8
7
+ Stable tag: 5.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
103
 
104
  == Changelog ==
105
 
106
+ = v5.1.1 (Nov 1, 2018) =
107
+ * Fixed PHP error in the review widget
108
+
109
+ = v5.1.0 (Oct 17, 2018) =
110
  * Removed unnecessary scripts from the non WP Review admin pages
111
  * Fixed total rating disappearing issue if there are no features
112
  * Fixed inactive color issue bug if color filter is used in the theme
113
  * Fixed no space between HTML attributes
114
  * Fixed compatibility issue with Rank Math plugin
115
+ * Overall code improvements according to the WPCS & PHPCS
116
 
117
  = v5.0.8 (Oct 3, 2018) =
118
  * Fixed adding unnecessary custom field values if the review is not enabled in the post
wp-review.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WP Review
4
  * Plugin URI: http://mythemeshop.com/plugins/wp-review/
5
  * Description: Create reviews! Choose from stars, percentages or points for review scores. Supports Retina Display, WPMU and Unlimited Color Schemes.
6
- * Version: 5.1.0
7
  * Author: MyThemeShop
8
  * Author URI: http://mythemeshop.com/
9
  * Text Domain: wp-review
@@ -45,7 +45,7 @@ if ( version_compare( phpversion(), '5.6', '<' ) ) {
45
  }
46
 
47
  /* Plugin version */
48
- define( 'WP_REVIEW_PLUGIN_VERSION', '5.1.0' );
49
 
50
  /* Sets the custom db table name. */
51
  define( 'MTS_WP_REVIEW_DB_TABLE', 'mts_wp_reviews' );
3
  * Plugin Name: WP Review
4
  * Plugin URI: http://mythemeshop.com/plugins/wp-review/
5
  * Description: Create reviews! Choose from stars, percentages or points for review scores. Supports Retina Display, WPMU and Unlimited Color Schemes.
6
+ * Version: 5.1.1
7
  * Author: MyThemeShop
8
  * Author URI: http://mythemeshop.com/
9
  * Text Domain: wp-review
45
  }
46
 
47
  /* Plugin version */
48
+ define( 'WP_REVIEW_PLUGIN_VERSION', '5.1.1' );
49
 
50
  /* Sets the custom db table name. */
51
  define( 'MTS_WP_REVIEW_DB_TABLE', 'mts_wp_reviews' );