WP Review - Version 5.2.4

Version Description

Download this release

Release Info

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

Code changes from version 5.2.3 to 5.2.4

admin/assets/js/review-notice.js CHANGED
@@ -15,7 +15,7 @@
15
  }
16
 
17
  $( document ).ready( function() {
18
- $( '.wpr-review-notice-btn-dismiss' ).on( 'click', function() {
19
  dismiss();
20
  });
21
  $( '.wpr-review-notice-btn-later' ).on( 'click', function() {
15
  }
16
 
17
  $( document ).ready( function() {
18
+ $( '.wpr-review-notice-btn-dismiss, #wpr-review-notice .notice-dismiss' ).on( 'click', function() {
19
  dismiss();
20
  });
21
  $( '.wpr-review-notice-btn-later' ).on( 'click', function() {
admin/class-wpr-review-notice.php CHANGED
@@ -122,8 +122,14 @@ class WPR_Review_Notice {
122
  if ( get_transient( $this->dismiss_transient_key ) ) {
123
  return false;
124
  }
125
- $query = wp_review_get_reviews_query( 'latest', array( 'post_num' => $this->review_count ) );
126
- return intval( $query->found_posts ) === $this->review_count;
 
 
 
 
 
 
127
  }
128
  }
129
 
122
  if ( get_transient( $this->dismiss_transient_key ) ) {
123
  return false;
124
  }
125
+ $query = wp_review_get_reviews_query(
126
+ 'latest',
127
+ array(
128
+ 'post_num' => $this->review_count,
129
+ 'post_status' => 'any',
130
+ )
131
+ );
132
+ return intval( $query->post_count ) === $this->review_count;
133
  }
134
  }
135
 
includes/functions.php CHANGED
@@ -2814,6 +2814,7 @@ 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['cat'] = ! empty( $options['cat'] ) ? (array) $options['cat'] : array();
2818
 
2819
  switch ( $type ) {
@@ -2857,7 +2858,6 @@ function wp_review_get_reviews_query( $type, $options ) {
2857
 
2858
  $query_args['ignore_sticky_posts'] = true;
2859
  $query_args['post_type'] = isset( $options['post_type'] ) ? $options['post_type'] : 'post';
2860
- $query_args['post_status'] = 'publish';
2861
 
2862
  if ( ! empty( $options['post_num'] ) ) {
2863
  $query_args['posts_per_page'] = intval( $options['post_num'] );
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 ) {
2858
 
2859
  $query_args['ignore_sticky_posts'] = true;
2860
  $query_args['post_type'] = isset( $options['post_type'] ) ? $options['post_type'] : 'post';
 
2861
 
2862
  if ( ! empty( $options['post_num'] ) ) {
2863
  $query_args['posts_per_page'] = intval( $options['post_num'] );
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.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -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.3 (Jul 12, 2019) =
107
  * Remove unused code
108
  * Fix Review nag notice shows up too early
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
 
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
+
109
  = v5.2.3 (Jul 12, 2019) =
110
  * Remove unused code
111
  * Fix Review nag notice shows up too early
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.3
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.3' );
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.4
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.4' );
49
 
50
  /* Sets the custom db table name. */
51
  define( 'MTS_WP_REVIEW_DB_TABLE', 'mts_wp_reviews' );