WP Review - Version 4.0.12

Version Description

Download this release

Release Info

Developer roymahfooz
Plugin Icon 128x128 WP Review
Version 4.0.12
Comparing to
See all releases

Code changes from version 4.0.11 to 4.0.12

admin/activation.php CHANGED
File without changes
admin/admin.php CHANGED
File without changes
admin/metaboxes.php CHANGED
File without changes
admin/options.php CHANGED
File without changes
assets/css/admin.css CHANGED
File without changes
assets/css/wp-review-ie7.css CHANGED
File without changes
assets/css/wp-review-tab-widget.css CHANGED
File without changes
assets/css/wp-review.css CHANGED
File without changes
assets/fonts/font-icons.eot CHANGED
File without changes
assets/fonts/font-icons.svg CHANGED
File without changes
assets/fonts/font-icons.ttf CHANGED
File without changes
assets/fonts/font-icons.woff CHANGED
File without changes
assets/images/largethumb.png CHANGED
File without changes
assets/images/smallthumb.png CHANGED
File without changes
assets/images/wp-review-pro.jpg CHANGED
File without changes
assets/js/admin.js CHANGED
File without changes
assets/js/main.js CHANGED
File without changes
assets/js/wp-review-tab-widget-admin.js CHANGED
File without changes
assets/js/wp-review-tab-widget.js CHANGED
File without changes
box-templates/default.php CHANGED
@@ -14,18 +14,18 @@
14
 
15
  /*
16
  * Available items in $review array:
17
- *
18
- * 'post_id',
19
  'type',
20
- 'heading',
21
- 'author',
22
- 'items',
23
- 'hide_desc',
24
- 'desc',
25
- 'desc_title',
26
- 'total',
27
- 'colors',
28
- 'schema',
29
  'links',
30
  'user_review',
31
  'user_review_type',
@@ -33,7 +33,7 @@
33
  'user_review_count',
34
  'user_has_reviewed',
35
  'add_backlink'
36
- *
37
  */
38
 
39
  // Exit if accessed directly
@@ -77,7 +77,11 @@ if ($review['add_backlink']) {
77
  ?>
78
  <li>
79
  <span><?php echo wp_kses_post( $item['wp_review_item_title'] ); ?><?php echo $value_text; ?></span>
80
- <?php echo wp_review_rating( $item['wp_review_item_star'] ); ?>
 
 
 
 
81
  </li>
82
  <?php endforeach; ?>
83
  </ul>
@@ -112,7 +116,7 @@ if ($review['add_backlink']) {
112
  <div class="user-total-wrapper">
113
  <span class="user-review-title"><?php _e( 'User Rating', 'wp-review' ); ?></span>
114
  <span class="review-total-box">
115
- <?php
116
  $usertotal_text = $review['user_review_total'];
117
  if ($review['user_review_type'] != 'star') {
118
  $usertotal_text = sprintf( $wp_review_rating_types[$review['user_review_type']]['value_text'], $review['user_review_total'] );
@@ -129,7 +133,7 @@ if ($review['add_backlink']) {
129
  <?php if ($review['add_backlink']) : ?>
130
  <?php echo wp_review_get_backlink(); ?>
131
  <?php endif; ?>
132
- <?php
133
  $colors = $review['colors'];
134
  $color_output = <<<EOD
135
 
14
 
15
  /*
16
  * Available items in $review array:
17
+ *
18
+ * 'post_id',
19
  'type',
20
+ 'heading',
21
+ 'author',
22
+ 'items',
23
+ 'hide_desc',
24
+ 'desc',
25
+ 'desc_title',
26
+ 'total',
27
+ 'colors',
28
+ 'schema',
29
  'links',
30
  'user_review',
31
  'user_review_type',
33
  'user_review_count',
34
  'user_has_reviewed',
35
  'add_backlink'
36
+ *
37
  */
38
 
39
  // Exit if accessed directly
77
  ?>
78
  <li>
79
  <span><?php echo wp_kses_post( $item['wp_review_item_title'] ); ?><?php echo $value_text; ?></span>
80
+ <?php
81
+ if( isset( $item['wp_review_item_star'] )) {
82
+ echo wp_review_rating( $item['wp_review_item_star'] );
83
+ }
84
+ ?>
85
  </li>
86
  <?php endforeach; ?>
87
  </ul>
116
  <div class="user-total-wrapper">
117
  <span class="user-review-title"><?php _e( 'User Rating', 'wp-review' ); ?></span>
118
  <span class="review-total-box">
119
+ <?php
120
  $usertotal_text = $review['user_review_total'];
121
  if ($review['user_review_type'] != 'star') {
122
  $usertotal_text = sprintf( $wp_review_rating_types[$review['user_review_type']]['value_text'], $review['user_review_total'] );
133
  <?php if ($review['add_backlink']) : ?>
134
  <?php echo wp_review_get_backlink(); ?>
135
  <?php endif; ?>
136
+ <?php
137
  $colors = $review['colors'];
138
  $color_output = <<<EOD
139
 
filter-list.php CHANGED
File without changes
includes/enqueue.php CHANGED
File without changes
includes/functions.php CHANGED
File without changes
includes/widget.php CHANGED
File without changes
languages/default.mo CHANGED
File without changes
languages/default.po CHANGED
File without changes
license.txt CHANGED
File without changes
rating-types/percentage-input.js CHANGED
File without changes
rating-types/percentage-input.php CHANGED
File without changes
rating-types/percentage-output.php CHANGED
File without changes
rating-types/point-input.js CHANGED
File without changes
rating-types/point-input.php CHANGED
File without changes
rating-types/point-output.php CHANGED
File without changes
rating-types/star-input.js CHANGED
File without changes
rating-types/star-input.php CHANGED
File without changes
rating-types/star-output.php CHANGED
File without changes
readme.txt CHANGED
@@ -3,8 +3,8 @@ 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: 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
 
@@ -52,9 +52,9 @@ You can also check <a rel="nfollow" href="https://mythemeshop.com/plugins/wp-rev
52
  * Developer friendly - Useful filters are included! So you can use it in your themes.
53
 
54
  = Support =
55
- All support for this plugin is provided through our forums. If you have not registered yet, you can do so for FREE by <a rel="nofollow" href="https://mythemeshop.com/#signup">**signing up**</a> on our website.
56
 
57
- You can also check our <a rel="nofollow" href="https://mythemeshop.com/wordpress-101/">WordPress Training videos</a>
58
 
59
  If you still feel stuck, please feel free to open a new thread on our <a rel="nofollow" href="https://community.mythemeshop.com/forum/11-free-plugin-support/">Support Forum</a>. A member of our support team will be happy to help.
60
 
@@ -102,6 +102,10 @@ Please disable all plugins and check if rating is working properly. Then you can
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
 
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: 4.9.5
7
+ Stable tag: 4.0.12
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
52
  * Developer friendly - Useful filters are included! So you can use it in your themes.
53
 
54
  = Support =
55
+ All support for this plugin is provided through our forums. If you have not registered yet, you can do so for FREE by <a rel="nofollow" href="https://mythemeshop.com/#signup">**signing up**</a> on our website.
56
 
57
+ You can also check our <a rel="nofollow" href="https://mythemeshop.com/wordpress-101/">WordPress Training videos</a>
58
 
59
  If you still feel stuck, please feel free to open a new thread on our <a rel="nofollow" href="https://community.mythemeshop.com/forum/11-free-plugin-support/">Support Forum</a>. A member of our support team will be happy to help.
60
 
102
 
103
  == Changelog ==
104
 
105
+ = v4.0.12 (Apr 21, 2018) =
106
+ * Fixed PHP warnings and errors
107
+ * Improved code and PHP 7.2 compatibility
108
+
109
  = v4.0.11 (Dec 11, 2017) =
110
  * Prevent review-related post fields from getting added when the post has no review
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: 4.0.11
7
  * Author: MyThemesShop
8
  * Author URI: http://mythemeshop.com/
9
  *
@@ -18,13 +18,13 @@ if ( ! defined( 'ABSPATH' ) ) exit;
18
 
19
  // WP Review Pro activated?
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' );
27
-
28
  /* When plugin is activated */
29
  register_activation_hook( __FILE__, 'wp_review_activation' );
30
  add_action('admin_init', 'wp_review_settings_redirect');
@@ -58,7 +58,7 @@ if ( ! defined( 'MTS_WP_REVIEW_DB_TABLE' )) {
58
  define( 'WP_REVIEW_INCLUDES', WP_REVIEW_DIR . trailingslashit( 'includes' ) );
59
 
60
  /* Sets the path to the `assets` directory. */
61
- define( 'WP_REVIEW_ASSETS', WP_REVIEW_URI . trailingslashit( 'assets' ) );
62
 
63
  /* Sets plugin base 'directory/file.php' */
64
  define( 'WP_REVIEW_PLUGIN_BASE', plugin_basename(__FILE__) );
@@ -95,10 +95,10 @@ if ( ! defined( 'MTS_WP_REVIEW_DB_TABLE' )) {
95
  /* Loads the meta boxes. */
96
  require_once( WP_REVIEW_ADMIN . 'metaboxes.php' );
97
 
98
- /* Loads the front-end functions. */
99
  require_once( WP_REVIEW_INCLUDES . 'functions.php' );
100
 
101
- /* Loads the widget. */
102
  require_once( WP_REVIEW_INCLUDES . 'widget.php' );
103
 
104
  /* Loads the enqueue functions. */
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.12
7
  * Author: MyThemesShop
8
  * Author URI: http://mythemeshop.com/
9
  *
18
 
19
  // WP Review Pro activated?
20
  if ( ! defined( 'MTS_WP_REVIEW_DB_TABLE' )) {
21
+
22
  /* Plugin version */
23
+ define( 'WP_REVIEW_PLUGIN_VERSION', '4.0.12' );
24
+
25
  /* Sets the custom db table name. */
26
  define( 'MTS_WP_REVIEW_DB_TABLE', 'mts_wp_reviews' );
27
+
28
  /* When plugin is activated */
29
  register_activation_hook( __FILE__, 'wp_review_activation' );
30
  add_action('admin_init', 'wp_review_settings_redirect');
58
  define( 'WP_REVIEW_INCLUDES', WP_REVIEW_DIR . trailingslashit( 'includes' ) );
59
 
60
  /* Sets the path to the `assets` directory. */
61
+ define( 'WP_REVIEW_ASSETS', WP_REVIEW_URI . trailingslashit( 'assets' ) );
62
 
63
  /* Sets plugin base 'directory/file.php' */
64
  define( 'WP_REVIEW_PLUGIN_BASE', plugin_basename(__FILE__) );
95
  /* Loads the meta boxes. */
96
  require_once( WP_REVIEW_ADMIN . 'metaboxes.php' );
97
 
98
+ /* Loads the front-end functions. */
99
  require_once( WP_REVIEW_INCLUDES . 'functions.php' );
100
 
101
+ /* Loads the widget. */
102
  require_once( WP_REVIEW_INCLUDES . 'widget.php' );
103
 
104
  /* Loads the enqueue functions. */