WP Review - Version 4.0.17

Version Description

Download this release

Release Info

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

Code changes from version 4.0.16 to 4.0.17

admin/admin.php CHANGED
@@ -29,6 +29,15 @@ function wp_review_admin_style( $hook_suffix ) {
29
  true
30
  );
31
 
 
 
 
 
 
 
 
 
 
32
  wp_enqueue_style(
33
  'wp-review-admin-ui-css',
34
  '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/themes/smoothness/jquery-ui.css',
29
  true
30
  );
31
 
32
+ wp_localize_script(
33
+ 'wp-review-admin-script',
34
+ 'wprVars',
35
+ array(
36
+ 'ratingPermissionsCommentOnly' => WP_REVIEW_REVIEW_COMMENT_ONLY,
37
+ 'ratingPermissionsBoth' => WP_REVIEW_REVIEW_ALLOW_BOTH,
38
+ )
39
+ );
40
+
41
  wp_enqueue_style(
42
  'wp-review-admin-ui-css',
43
  '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/themes/smoothness/jquery-ui.css',
admin/options.php CHANGED
@@ -323,9 +323,6 @@ function wpreview_settings_page() {
323
  <?php endif; ?>
324
 
325
  </div>
326
-
327
-
328
-
329
 
330
  </form>
331
  </div>
323
  <?php endif; ?>
324
 
325
  </div>
 
 
 
326
 
327
  </form>
328
  </div>
assets/css/admin.css CHANGED
@@ -196,3 +196,13 @@ h4.wp-review-comment-title {
196
  width: 16px;
197
  height: 16px;
198
  }
 
 
 
 
 
 
 
 
 
 
196
  width: 16px;
197
  height: 16px;
198
  }
199
+
200
+ .wp-review-admin-options #col-left {
201
+ width: 32%;
202
+ }
203
+
204
+ @media screen and (max-width: 782px) {
205
+ .wp-review-admin-options #col-left {
206
+ width: 100%;
207
+ }
208
+ }
assets/css/wp-review.css CHANGED
@@ -494,7 +494,6 @@ form.wp-review-comment-form > div, #commentform.wp-review-comment-form > div {
494
  font-variant: normal;
495
  text-transform: none;
496
  line-height: 1em;
497
- margin-left: 2px;
498
  }
499
 
500
  [class*="mts-icon-loader"]:before {
494
  font-variant: normal;
495
  text-transform: none;
496
  line-height: 1em;
 
497
  }
498
 
499
  [class*="mts-icon-loader"]:before {
assets/js/admin.js CHANGED
@@ -230,7 +230,7 @@ jQuery(document).ready(function($) {
230
  $('[name=wp_review_userReview]').change(function(e){
231
  var val = $(this).val();
232
  var $type = $('#wp_review_comment_rating_type');
233
- if(ratingPermissions.commentOnly === val || ratingPermissions.both === val){
234
  $type.show();
235
  } else {
236
  $type.hide();
230
  $('[name=wp_review_userReview]').change(function(e){
231
  var val = $(this).val();
232
  var $type = $('#wp_review_comment_rating_type');
233
+ if(wprVars.ratingPermissionsCommentOnly === val || wprVars.ratingPermissionsBoth === val){
234
  $type.show();
235
  } else {
236
  $type.hide();
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.6
7
- Stable tag: 4.0.16
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -102,6 +102,11 @@ Please disable all plugins and check if rating is working properly. Then you can
102
 
103
  == Changelog ==
104
 
 
 
 
 
 
105
  = v4.0.16 (June 30, 2018) =
106
  * Updated admin notices
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.6
7
+ Stable tag: 4.0.17
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.17 (July 17, 2018) =
106
+ * Fixed Banner alignment issue on settings page
107
+ * Fixed Single page settings JS console error
108
+ * Removed margin from icon which was causing to break the design
109
+
110
  = v4.0.16 (June 30, 2018) =
111
  * Updated admin notices
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: 4.0.16
7
  * Author: MyThemesShop
8
  * Author URI: http://mythemeshop.com/
9
  * Text Domain: wp-review
@@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
21
  if ( ! defined( 'MTS_WP_REVIEW_DB_TABLE' )) {
22
 
23
  /* Plugin version */
24
- define( 'WP_REVIEW_PLUGIN_VERSION', '4.0.16' );
25
 
26
  /* Sets the custom db table name. */
27
  define( 'MTS_WP_REVIEW_DB_TABLE', 'mts_wp_reviews' );
@@ -71,6 +71,8 @@ if ( ! defined( 'MTS_WP_REVIEW_DB_TABLE' )) {
71
  /* Keys for user review permissions */
72
  define( 'WP_REVIEW_REVIEW_DISABLED', '0' );
73
  define( 'WP_REVIEW_REVIEW_VISITOR_ONLY', '2' );
 
 
74
 
75
  }
76
 
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.17
7
  * Author: MyThemesShop
8
  * Author URI: http://mythemeshop.com/
9
  * Text Domain: wp-review
21
  if ( ! defined( 'MTS_WP_REVIEW_DB_TABLE' )) {
22
 
23
  /* Plugin version */
24
+ define( 'WP_REVIEW_PLUGIN_VERSION', '4.0.17' );
25
 
26
  /* Sets the custom db table name. */
27
  define( 'MTS_WP_REVIEW_DB_TABLE', 'mts_wp_reviews' );
71
  /* Keys for user review permissions */
72
  define( 'WP_REVIEW_REVIEW_DISABLED', '0' );
73
  define( 'WP_REVIEW_REVIEW_VISITOR_ONLY', '2' );
74
+ define( 'WP_REVIEW_REVIEW_COMMENT_ONLY', 3 );
75
+ define( 'WP_REVIEW_REVIEW_ALLOW_BOTH', 4 );
76
 
77
  }
78