WP Review - Version 5.1.6

Version Description

Download this release

Release Info

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

Code changes from version 5.1.5 to 5.1.6

Files changed (3) hide show
  1. admin/assets/js/admin.js +14 -8
  2. readme.txt +6 -2
  3. wp-review.php +2 -2
admin/assets/js/admin.js CHANGED
@@ -552,7 +552,7 @@
552
  ev.preventDefault();
553
  ev.returnValue = false;
554
  return false;
555
- }
556
 
557
  if ( ! up && -delta > scrollHeight - height - scrollTop ) {
558
  // Scrolling down, but this will take us past the bottom.
@@ -606,19 +606,25 @@
606
  }
607
  });
608
 
609
- // WYSIWYG saving issue when using Gutenberg.
610
- if ( 'undefined' !== typeof wp.data && 'function' === typeof wp.data.subscribe ) {
611
- wp.data.subscribe( function() {
612
- window.tinyMCE.triggerSave();
613
- });
614
- }
615
-
616
  // Fix conflict with color picker in Avada theme.
617
  if ( $( '.pyre_field.avada-color' ).length ) {
618
  $( '.wp-review-color' ).closest( '.wp-review-field-option' ).addClass( 'pyre_field' );
619
  $( '.input-color, .input-inactive-color' ).closest( '.col-2' ).addClass( 'pyre_field' );
620
  }
621
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
622
  })( jQuery );
623
 
624
  jQuery(document).ready(function($) {
552
  ev.preventDefault();
553
  ev.returnValue = false;
554
  return false;
555
+ };
556
 
557
  if ( ! up && -delta > scrollHeight - height - scrollTop ) {
558
  // Scrolling down, but this will take us past the bottom.
606
  }
607
  });
608
 
 
 
 
 
 
 
 
609
  // Fix conflict with color picker in Avada theme.
610
  if ( $( '.pyre_field.avada-color' ).length ) {
611
  $( '.wp-review-color' ).closest( '.wp-review-field-option' ).addClass( 'pyre_field' );
612
  $( '.input-color, .input-inactive-color' ).closest( '.col-2' ).addClass( 'pyre_field' );
613
  }
614
  });
615
+
616
+ $( window ).load( function() {
617
+ // WYSIWYG saving issue when using Gutenberg.
618
+ if ( $( 'body.block-editor-page' ).length ) {
619
+ window.tinyMCE.editors.forEach( function( editor ) {
620
+ editor.on( 'change', function() {
621
+ editor.save();
622
+ });
623
+ });
624
+ }
625
+
626
+ $( '#wp_review_type' ).trigger( 'change' );
627
+ });
628
  })( jQuery );
629
 
630
  jQuery(document).ready(function($) {
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === WP Review ===
2
  Contributors: mythemeshop
3
  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: 5.0
7
- Stable tag: 5.1.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -103,6 +103,10 @@ Please disable all plugins and check if rating is working properly. Then you can
103
 
104
  == Changelog ==
105
 
 
 
 
 
106
  = v5.1.5 (Dec 4, 2018) =
107
  * Fixed missing files in the single page editor
108
 
1
  === WP Review ===
2
  Contributors: mythemeshop
3
  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.0
7
+ Stable tag: 5.1.6
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.6 (Dec 7, 2018) =
107
+ * Fixed meta boxes not hiding when set Review type to 'none'
108
+ * Fixed WordPress 5.0 block editor conflict
109
+
110
  = v5.1.5 (Dec 4, 2018) =
111
  * Fixed missing files in the single page editor
112
 
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.5
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.5' );
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.6
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.6' );
49
 
50
  /* Sets the custom db table name. */
51
  define( 'MTS_WP_REVIEW_DB_TABLE', 'mts_wp_reviews' );