WP Review - Version 3.2.3

Version Description

  • Added version number to wp_enqueue_ functions
  • Added filter to remove banner from options page
Download this release

Release Info

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

Code changes from version 3.2.2 to 3.2.3

admin/admin.php CHANGED
@@ -17,8 +17,8 @@ add_action( 'admin_enqueue_scripts', 'wp_review_admin_style' );
17
  * @since 1.0
18
  */
19
  function wp_review_admin_style( $hook_suffix ) {
20
- wp_enqueue_style( 'wp-review-admin-style', WP_REVIEW_ASSETS . 'css/admin.css' );
21
- wp_enqueue_script( 'wp-review-admin-script', WP_REVIEW_ASSETS . 'js/admin.js', array( 'wp-color-picker', 'jquery' ), false, true );
22
 
23
  /* Load the color picker dependencies style. */
24
  wp_enqueue_style( 'wp-color-picker' );
17
  * @since 1.0
18
  */
19
  function wp_review_admin_style( $hook_suffix ) {
20
+ wp_enqueue_style( 'wp-review-admin-style', WP_REVIEW_ASSETS . 'css/admin.css', array(), WP_REVIEW_PLUGIN_VERSION );
21
+ wp_enqueue_script( 'wp-review-admin-script', WP_REVIEW_ASSETS . 'js/admin.js', array( 'wp-color-picker', 'jquery' ), WP_REVIEW_PLUGIN_VERSION, true );
22
 
23
  /* Load the color picker dependencies style. */
24
  wp_enqueue_style( 'wp-color-picker' );
admin/options.php CHANGED
@@ -231,11 +231,13 @@ function wpreview_settings_page() {
231
 
232
  </form>
233
  </div>
 
234
  <div id="col-left" style="float: right">
235
  <a href="https://mythemeshop.com/plugins/wp-review-pro/" target="_blank">
236
  <img src="<?php echo trailingslashit( WP_REVIEW_ASSETS ); ?>/images/wp-review-pro.jpg">
237
  </a>
238
  </div>
 
239
  </div>
240
  </div>
241
  <?php }
231
 
232
  </form>
233
  </div>
234
+ <?php if (!apply_filters( 'wp_review_remove_branding', false )) : ?>
235
  <div id="col-left" style="float: right">
236
  <a href="https://mythemeshop.com/plugins/wp-review-pro/" target="_blank">
237
  <img src="<?php echo trailingslashit( WP_REVIEW_ASSETS ); ?>/images/wp-review-pro.jpg">
238
  </a>
239
  </div>
240
+ <?php endif; ?>
241
  </div>
242
  </div>
243
  <?php }
assets/css/wp-review.css CHANGED
@@ -2,7 +2,6 @@
2
  * Plugin Name: WP Review
3
  * Plugin URI: http://mythemeshop.com/plugins/wp-review/
4
  * Description: Create reviews! Choose from Stars, Percentages or Points for review scores. Supports Retina Display, WPMU & Unlimited Color Schemes.
5
- * Version: 3.2.2
6
  * Author: MyThemesShop
7
  * Author URI: http://mythemeshop.com/
8
  */
2
  * Plugin Name: WP Review
3
  * Plugin URI: http://mythemeshop.com/plugins/wp-review/
4
  * Description: Create reviews! Choose from Stars, Percentages or Points for review scores. Supports Retina Display, WPMU & Unlimited Color Schemes.
 
5
  * Author: MyThemesShop
6
  * Author URI: http://mythemeshop.com/
7
  */
filter-list.php CHANGED
@@ -74,4 +74,7 @@ $new_options = array(
74
  );
75
  if ( function_exists( 'wp_review_theme_defaults' )) wp_review_theme_defaults( $new_options );
76
 
 
 
 
77
  ?>
74
  );
75
  if ( function_exists( 'wp_review_theme_defaults' )) wp_review_theme_defaults( $new_options );
76
 
77
+ // Remove banner from options page
78
+ add_filter( 'wp_review_remove_branding', '__return_true' );
79
+
80
  ?>
includes/enqueue.php CHANGED
@@ -26,8 +26,8 @@ function wp_review_enqueue() {
26
  $type = get_post_meta( $post->ID, 'wp_review_type', true );
27
 
28
  if ( $type != '' ){
29
- wp_enqueue_style( 'wp_review-style', trailingslashit( WP_REVIEW_ASSETS ) . 'css/wp-review.css', array(), '1.1', 'all' );
30
- wp_enqueue_script( 'wp_review-js', trailingslashit( WP_REVIEW_ASSETS ) . 'js/main.js', array('jquery'), '1.1', true );
31
  ?>
32
  <script type="text/javascript">
33
  var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>';
26
  $type = get_post_meta( $post->ID, 'wp_review_type', true );
27
 
28
  if ( $type != '' ){
29
+ wp_enqueue_style( 'wp_review-style', trailingslashit( WP_REVIEW_ASSETS ) . 'css/wp-review.css', array(), WP_REVIEW_PLUGIN_VERSION, 'all' );
30
+ wp_enqueue_script( 'wp_review-js', trailingslashit( WP_REVIEW_ASSETS ) . 'js/main.js', array('jquery'), WP_REVIEW_PLUGIN_VERSION, true );
31
  ?>
32
  <script type="text/javascript">
33
  var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>';
includes/functions.php CHANGED
@@ -363,7 +363,7 @@ function wp_review_show_total($echo = true, $class = 'review-total-only') {
363
  $colors = apply_filters('wp_review_colors', $colors, $post->ID);
364
 
365
  if (!empty($type) && (!empty($total) || $total === '0')) {
366
- wp_enqueue_style( 'wp_review-style', trailingslashit( WP_REVIEW_ASSETS ) . 'css/wp-review.css', array(), '1.1', 'all' );
367
 
368
  $review = '<div class="review-type-'.$type.' '.esc_attr($class).' wp-review-show-total wp-review-total-'.$post->ID.'"> ';
369
 
363
  $colors = apply_filters('wp_review_colors', $colors, $post->ID);
364
 
365
  if (!empty($type) && (!empty($total) || $total === '0')) {
366
+ wp_enqueue_style( 'wp_review-style', trailingslashit( WP_REVIEW_ASSETS ) . 'css/wp-review.css', array(), WP_REVIEW_PLUGIN_VERSION, 'all' );
367
 
368
  $review = '<div class="review-type-'.$type.' '.esc_attr($class).' wp-review-show-total wp-review-total-'.$post->ID.'"> ';
369
 
includes/widget.php CHANGED
@@ -15,20 +15,20 @@ class wp_review_tab_widget extends WP_Widget {
15
  $this->WP_Widget('wp_review_tab_widget', __('WP Review Widget', 'wp-review'), $widget_ops, $control_ops);
16
  }
17
  function wp_review_tab_admin_scripts($hook) {
18
- wp_register_script('wp_review_tab_widget_admin', trailingslashit( WP_REVIEW_ASSETS ).'js/wp-review-tab-widget-admin.js', array('jquery'));
19
  wp_enqueue_script('wp_review_tab_widget_admin');
20
  }
21
  function wp_review_tab_register_scripts() {
22
  // JS
23
  wp_enqueue_script('jquery');
24
- wp_register_script('wp_review_tab_widget', trailingslashit( WP_REVIEW_ASSETS ).'js/wp-review-tab-widget.js', array('jquery'));
25
  wp_localize_script( 'wp_review_tab_widget', 'wp_review_tab',
26
  array( 'ajax_url' => admin_url( 'admin-ajax.php' ))
27
  );
28
  // CSS
29
- wp_register_style('wp_review_tab_widget', trailingslashit( WP_REVIEW_ASSETS ).'css/wp-review-tab-widget.css', true);
30
- wp_register_style( 'wp_review-style', trailingslashit( WP_REVIEW_ASSETS ) . 'css/wp-review.css', array(), '1.1', 'all' );
31
- wp_register_script( 'wp_review-js', trailingslashit( WP_REVIEW_ASSETS ) . 'js/main.js', array('jquery'), '1.1', true );
32
  }
33
 
34
  function form( $instance ) {
15
  $this->WP_Widget('wp_review_tab_widget', __('WP Review Widget', 'wp-review'), $widget_ops, $control_ops);
16
  }
17
  function wp_review_tab_admin_scripts($hook) {
18
+ wp_register_script('wp_review_tab_widget_admin', trailingslashit( WP_REVIEW_ASSETS ).'js/wp-review-tab-widget-admin.js', array('jquery'), WP_REVIEW_PLUGIN_VERSION);
19
  wp_enqueue_script('wp_review_tab_widget_admin');
20
  }
21
  function wp_review_tab_register_scripts() {
22
  // JS
23
  wp_enqueue_script('jquery');
24
+ wp_register_script('wp_review_tab_widget', trailingslashit( WP_REVIEW_ASSETS ).'js/wp-review-tab-widget.js', array('jquery'), WP_REVIEW_PLUGIN_VERSION);
25
  wp_localize_script( 'wp_review_tab_widget', 'wp_review_tab',
26
  array( 'ajax_url' => admin_url( 'admin-ajax.php' ))
27
  );
28
  // CSS
29
+ wp_register_style('wp_review_tab_widget', trailingslashit( WP_REVIEW_ASSETS ).'css/wp-review-tab-widget.css', array(), WP_REVIEW_PLUGIN_VERSION);
30
+ wp_register_style( 'wp_review-style', trailingslashit( WP_REVIEW_ASSETS ) . 'css/wp-review.css', array(), WP_REVIEW_PLUGIN_VERSION, 'all' );
31
+ wp_register_script( 'wp_review-js', trailingslashit( WP_REVIEW_ASSETS ) . 'js/main.js', array('jquery'), WP_REVIEW_PLUGIN_VERSION, true );
32
  }
33
 
34
  function form( $instance ) {
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: 3.0.1
6
  Tested up to: 4.0
7
- Stable tag: 3.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -89,6 +89,10 @@ Please disable all plugins and check if rating is working properly. Then you can
89
 
90
  == Changelog ==
91
 
 
 
 
 
92
  = 3.2.2 =
93
  * Fixed Stars were not appearing in Tabbed widget.
94
 
4
  Tags: review, wp review, rating, wp rating, user rating, google rating, star rating, product review
5
  Requires at least: 3.0.1
6
  Tested up to: 4.0
7
+ Stable tag: 3.2.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
89
 
90
  == Changelog ==
91
 
92
+ = 3.2.3 =
93
+ * Added version number to wp_enqueue_ functions
94
+ * Added filter to remove banner from options page
95
+
96
  = 3.2.2 =
97
  * Fixed Stars were not appearing in Tabbed widget.
98
 
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: 3.2.2
7
  * Author: MyThemesShop
8
  * Author URI: http://mythemeshop.com/
9
  *
@@ -25,6 +25,9 @@ if ( ! defined( 'ABSPATH' ) ) exit;
25
  // WP Review activated?
26
  if ( ! defined( 'MTS_WP_REVIEW_DB_TABLE' ) ) {
27
 
 
 
 
28
  /* Sets the custom db table name. */
29
  define( 'MTS_WP_REVIEW_DB_TABLE', 'mts_wp_reviews' );
30
 
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: 3.2.3
7
  * Author: MyThemesShop
8
  * Author URI: http://mythemeshop.com/
9
  *
25
  // WP Review activated?
26
  if ( ! defined( 'MTS_WP_REVIEW_DB_TABLE' ) ) {
27
 
28
+ /* Plugin version */
29
+ define( 'WP_REVIEW_PLUGIN_VERSION', '3.2.3' );
30
+
31
  /* Sets the custom db table name. */
32
  define( 'MTS_WP_REVIEW_DB_TABLE', 'mts_wp_reviews' );
33