WP Review - Version 4.0.11

Version Description

Download this release

Release Info

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

Code changes from version 4.0.10 to 4.0.11

Files changed (3) hide show
  1. admin/metaboxes.php +5 -1
  2. readme.txt +4 -1
  3. wp-review.php +2 -2
admin/metaboxes.php CHANGED
@@ -382,6 +382,10 @@ function wp_review_save_postdata( $post_id, $post ) {
382
if ( !isset( $_POST['wp-review-userReview-nonce'] ) || !wp_verify_nonce( $_POST['wp-review-userReview-nonce'], basename( __FILE__ ) ) )
383
return;
384
385
/* If this is an autosave, our form has not been submitted, so we don't want to do anything. */
386
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
387
return $post_id;
@@ -492,4 +496,4 @@ function wp_review_default_schema_types( $types ) {
492
return array_merge( $types, $default );
493
}
494
add_filter( 'wp_review_schema_types', 'wp_review_default_schema_types' );
495
- ?>
382
if ( !isset( $_POST['wp-review-userReview-nonce'] ) || !wp_verify_nonce( $_POST['wp-review-userReview-nonce'], basename( __FILE__ ) ) )
383
return;
384
385
+ if ( empty( $_POST['wp_review_type'] ) ) {
386
+ return;
387
+ }
388
+
389
/* If this is an autosave, our form has not been submitted, so we don't want to do anything. */
390
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
391
return $post_id;
496
return array_merge( $types, $default );
497
}
498
add_filter( 'wp_review_schema_types', 'wp_review_default_schema_types' );
499
+ ?>
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.1
7
- Stable tag: 4.0.10
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -102,6 +102,9 @@ Please disable all plugins and check if rating is working properly. Then you can
102
103
== Changelog ==
104
105
= v4.0.10 (May 23, 2017) =
106
* Fixed shortcode attribute-related PHP warnings
107
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.1
7
+ Stable tag: 4.0.11
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
102
103
== Changelog ==
104
105
+ = v4.0.11 (Dec 11, 2017) =
106
+ * Prevent review-related post fields from getting added when the post has no review
107
+
108
= v4.0.10 (May 23, 2017) =
109
* Fixed shortcode attribute-related PHP warnings
110
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: 4.0.10
7
* Author: MyThemesShop
8
* Author URI: http://mythemeshop.com/
9
*
@@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
20
if ( ! defined( 'MTS_WP_REVIEW_DB_TABLE' )) {
21
22
/* Plugin version */
23
- define( 'WP_REVIEW_PLUGIN_VERSION', '4.0.6' );
24
25
/* Sets the custom db table name. */
26
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: 4.0.11
7
* Author: MyThemesShop
8
* Author URI: http://mythemeshop.com/
9
*
20
if ( ! defined( 'MTS_WP_REVIEW_DB_TABLE' )) {
21
22
/* Plugin version */
23
+ define( 'WP_REVIEW_PLUGIN_VERSION', '4.0.11' );
24
25
/* Sets the custom db table name. */
26
define( 'MTS_WP_REVIEW_DB_TABLE', 'mts_wp_reviews' );