WP Review - Version 5.2.5

Version Description

Download this release

Release Info

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

Code changes from version 5.2.4 to 5.2.5

Files changed (3) hide show
  1. includes/functions.php +15 -11
  2. readme.txt +5 -2
  3. wp-review.php +2 -2
includes/functions.php CHANGED
@@ -2814,23 +2814,24 @@ function wp_review_get_reviews_query( $type, $options ) {
2814
  }
2815
 
2816
  $options['review_type'] = ! empty( $options['review_type'] ) ? (array) $options['review_type'] : array();
2817
- $options['post_status'] = ! empty( $options['post_status'] ) ? $options['post_status'] : 'publish';
2818
  $options['cat'] = ! empty( $options['cat'] ) ? (array) $options['cat'] : array();
2819
 
2820
  switch ( $type ) {
2821
  case 'mostvoted':
2822
  $query_args = array(
2823
- 'orderby' => 'meta_value_num',
2824
- 'meta_key' => 'wp_review_review_count',
2825
- 'order' => 'desc',
 
2826
  );
2827
  break;
2828
 
2829
  case 'toprated':
2830
  $query_args = array(
2831
- 'orderby' => 'meta_value_num',
2832
- 'meta_key' => ! empty( $options['toprated_key'] ) ? $options['toprated_key'] : 'wp_review_total',
2833
- 'order' => 'desc',
 
2834
  );
2835
  break;
2836
 
@@ -2839,20 +2840,23 @@ function wp_review_get_reviews_query( $type, $options ) {
2839
  'orderby' => 'date',
2840
  'order' => 'desc',
2841
  'category__in' => $options['cat'],
 
2842
  );
2843
  break;
2844
 
2845
  case 'custom':
2846
  $query_args = array(
2847
- 'post__in' => $options['ids'],
2848
- 'orderby' => 'post__in',
 
2849
  );
2850
  break;
2851
 
2852
  default:
2853
  $query_args = array(
2854
- 'orderby' => 'date',
2855
- 'order' => 'desc',
 
2856
  );
2857
  }
2858
 
2814
  }
2815
 
2816
  $options['review_type'] = ! empty( $options['review_type'] ) ? (array) $options['review_type'] : array();
 
2817
  $options['cat'] = ! empty( $options['cat'] ) ? (array) $options['cat'] : array();
2818
 
2819
  switch ( $type ) {
2820
  case 'mostvoted':
2821
  $query_args = array(
2822
+ 'orderby' => 'meta_value_num',
2823
+ 'meta_key' => 'wp_review_review_count',
2824
+ 'order' => 'desc',
2825
+ 'post_status' => 'publish',
2826
  );
2827
  break;
2828
 
2829
  case 'toprated':
2830
  $query_args = array(
2831
+ 'orderby' => 'meta_value_num',
2832
+ 'meta_key' => ! empty( $options['toprated_key'] ) ? $options['toprated_key'] : 'wp_review_total',
2833
+ 'order' => 'desc',
2834
+ 'post_status' => 'publish',
2835
  );
2836
  break;
2837
 
2840
  'orderby' => 'date',
2841
  'order' => 'desc',
2842
  'category__in' => $options['cat'],
2843
+ 'post_status' => 'publish',
2844
  );
2845
  break;
2846
 
2847
  case 'custom':
2848
  $query_args = array(
2849
+ 'post__in' => $options['ids'],
2850
+ 'orderby' => 'post__in',
2851
+ 'post_status' => 'publish',
2852
  );
2853
  break;
2854
 
2855
  default:
2856
  $query_args = array(
2857
+ 'orderby' => 'date',
2858
+ 'order' => 'desc',
2859
+ 'post_status' => 'publish',
2860
  );
2861
  }
2862
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Creator's website link: http://mythemeshop.com/plugins/wp-review/
4
  Tags: review, schema.org, rating, schema, user rating, google rating, star rating, product review
5
  Requires at least: 4.0
6
  Tested up to: 5.2.2
7
- Stable tag: 5.2.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -25,7 +25,7 @@ Check the live demos of different Review types offered
25
  * <a rel="nofollow" href="http://demo.mythemeshop.com/point/modo-etiam-paulum-ad-dexteram-de-via-declinavi/"><strong>Point Review</strong></a>
26
  * <a rel="nofollow" href="http://demo.mythemeshop.com/point/sed-nonne-merninisti-licere-mihi-ista-probare/"><strong>Percentage Review</strong></a>
27
 
28
- You can also check <a rel="nfollow" href="https://mythemeshop.com/plugins/wp-review-pro/">WP Review Pro</a> which is one of the best <a rel="nofollow" href="https://mythemeshop.com/plugins/">Premium WordPress Plugins</a> for creating extraordinary reviews on your <a rel="nofollow" href="https://mythemeshop.com/blog/">WordPress blog</a> and website.
29
 
30
  = Why WP Review from <a rel="nofollow" href="http://mythemeshop.com/">MyThemeShop</a>: =
31
  * Fastest review plugin.
@@ -103,6 +103,9 @@ Please disable all plugins and check if rating is working properly. Then you can
103
 
104
  == Changelog ==
105
 
 
 
 
106
  = v5.2.4 (Jul 12, 2019) =
107
  * Fixed an issue with the notice not getting dismissed. Should not happen anymore. Closed and it shouldn't show anymore.
108
 
4
  Tags: review, schema.org, rating, schema, user rating, google rating, star rating, product review
5
  Requires at least: 4.0
6
  Tested up to: 5.2.2
7
+ Stable tag: 5.2.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
25
  * <a rel="nofollow" href="http://demo.mythemeshop.com/point/modo-etiam-paulum-ad-dexteram-de-via-declinavi/"><strong>Point Review</strong></a>
26
  * <a rel="nofollow" href="http://demo.mythemeshop.com/point/sed-nonne-merninisti-licere-mihi-ista-probare/"><strong>Percentage Review</strong></a>
27
 
28
+ You can also check <a rel="nofollow" href="https://mythemeshop.com/plugins/wp-review-pro/">WP Review Pro</a> which is one of the best <a rel="nofollow" href="https://mythemeshop.com/plugins/">Premium WordPress Plugins</a> for creating extraordinary reviews on your <a rel="nofollow" href="https://mythemeshop.com/blog/">WordPress blog</a> and website.
29
 
30
  = Why WP Review from <a rel="nofollow" href="http://mythemeshop.com/">MyThemeShop</a>: =
31
  * Fastest review plugin.
103
 
104
  == Changelog ==
105
 
106
+ = v5.2.5 (Jul 26, 2019) =
107
+ * Fixed review drafts showing up in the Widget
108
+
109
  = v5.2.4 (Jul 12, 2019) =
110
  * Fixed an issue with the notice not getting dismissed. Should not happen anymore. Closed and it shouldn't show anymore.
111
 
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.2.4
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.2.4' );
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.2.5
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.2.5' );
49
 
50
  /* Sets the custom db table name. */
51
  define( 'MTS_WP_REVIEW_DB_TABLE', 'mts_wp_reviews' );