WP Review - Version 3.3.2

Version Description

  • Switched to PHP 5 style constructor method for the widget class
Download this release

Release Info

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

Code changes from version 3.3.1 to 3.3.2

admin/admin.php CHANGED
@@ -30,4 +30,5 @@ function wp_review_admin_style( $hook_suffix ) {
30
false);
31
32
}
33
?>
30
false);
31
32
}
33
+
34
?>
admin/options.php CHANGED
@@ -60,8 +60,8 @@ function wpreview_settings_page() {
60
?>
61
<div id="poststuff" class="wrap wp-review">
62
<div id="post-body">
63
- <div id="col-right" style="float: left;">
64
- <h2><?php _e('WP Review Settings', 'wp-review'); ?></h2>
65
66
<form method="post" action="options.php">
67
<?php settings_fields( 'wpreview-settings-group' ); ?>
@@ -232,8 +232,8 @@ function wpreview_settings_page() {
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>
60
?>
61
<div id="poststuff" class="wrap wp-review">
62
<div id="post-body">
63
+ <div id="col-right" style="float: left; padding-right: 3%; box-sizing: border-box;">
64
+ <h2 style="margin-top: 0;"><?php _e('WP Review Settings', 'wp-review'); ?></h2>
65
66
<form method="post" action="options.php">
67
<?php settings_fields( 'wpreview-settings-group' ); ?>
232
</form>
233
</div>
234
<?php if (!apply_filters( 'wp_review_remove_branding', false )) : ?>
235
+ <div id="col-left" style="float: right; margin-top: 47px;">
236
+ <a href="https://mythemeshop.com/plugins/wp-review-pro/?utm_source=WP+Review&utm_medium=Link+CPC&utm_content=WP+Review+Pro+LP&utm_campaign=WordPressOrg" target="_blank">
237
<img src="<?php echo trailingslashit( WP_REVIEW_ASSETS ); ?>/images/wp-review-pro.jpg">
238
</a>
239
</div>
includes/functions.php CHANGED
@@ -623,4 +623,23 @@ function wp_review_get_all_image_sizes() {
623
624
return $image_sizes;
625
}
626
?>
623
624
return $image_sizes;
625
}
626
+
627
+ function admin_notice() {
628
+ global $current_user;
629
+
630
+ $screen = get_current_screen();
631
+ $user_id = $current_user->ID;
632
+
633
+ $closable = 'settings_page_wp-review/admin/options' !== $screen->id;
634
+
635
+ if ( current_user_can( 'manage_options' ) ) {
636
+ if ( 'true' !== get_user_meta( $user_id, 'wpr-notice-1', true ) || ! $closable ) {
637
+ echo '<div class="updated notice-info wp-review-notice" id="wpreview-notice" style="position:relative;">';
638
+ printf(__('<p>Create Reviews Easily & Rank Higher In Search Engines - <a target="_blank" href="https://mythemeshop.com/plugins/wp-review-pro/?utm_source=WP+Review&utm_medium=Notification+Link&utm_content=WP+Review+Pro+LP&utm_campaign=WordPressOrg"><strong>WP Reivew Pro Plugin</strong></a></p>' . ( $closable ? '<a class="notice-dismiss" href="%1$s"></a>' : '' )), '?wpr_notice_close=1');
639
+ echo "</div>";
640
+ }
641
+ }
642
+ }
643
+ add_action( 'admin_notices', 'admin_notice');
644
+
645
?>
includes/widget.php CHANGED
@@ -12,7 +12,7 @@ class wp_review_tab_widget extends WP_Widget {
12
13
$widget_ops = array('classname' => 'widget_wp_review_tab', 'description' => __('Display Reviews in tabbed format.', 'wp-review'));
14
$control_ops = array('width' => 200, 'height' => 350);
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);
12
13
$widget_ops = array('classname' => 'widget_wp_review_tab', 'description' => __('Display Reviews in tabbed format.', 'wp-review'));
14
$control_ops = array('width' => 200, 'height' => 350);
15
+ parent::__construct('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);
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: 3.0.1
6
- Tested up to: 4.2
7
- Stable tag: 3.3.1
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -89,7 +89,10 @@ Please disable all plugins and check if rating is working properly. Then you can
89
90
== Changelog ==
91
92
- = 3.3.1 =
93
* Rating stars are showing on search engine results page
94
95
= 3.3 =
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: 3.0.1
6
+ Tested up to: 4.3
7
+ Stable tag: 3.3.2
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
89
90
== Changelog ==
91
92
+ = 3.3.2 =
93
+ * Switched to PHP 5 style constructor method for the widget class
94
+
95
+ = 3.3.1 =
96
* Rating stars are showing on search engine results page
97
98
= 3.3 =
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.3.1
7
* Author: MyThemesShop
8
* Author URI: http://mythemeshop.com/
9
*
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.3.2
7
* Author: MyThemesShop
8
* Author URI: http://mythemeshop.com/
9
*