Version Description
- Fixed notification closing issue
Download this release
Release Info
Developer | MyThemeShop |
Plugin | WP Review |
Version | 3.3.4 |
Comparing to | |
See all releases |
Code changes from version 3.3.3 to 3.3.4
- includes/functions.php +21 -13
- readme.txt +4 -1
- wp-review.php +2 -2
includes/functions.php
CHANGED
@@ -624,22 +624,30 @@ function wp_review_get_all_image_sizes() {
|
|
624 |
return $image_sizes;
|
625 |
}
|
626 |
|
627 |
-
|
628 |
-
global $current_user;
|
629 |
|
630 |
-
|
631 |
-
$user_id = $current_user->ID;
|
632 |
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
|
|
639 |
echo "</div>";
|
640 |
-
|
641 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
642 |
}
|
643 |
-
add_action( 'admin_notices', 'wp_subscribe_admin_notice');
|
644 |
|
645 |
?>
|
624 |
return $image_sizes;
|
625 |
}
|
626 |
|
627 |
+
/* Display a notice*/
|
|
|
628 |
|
629 |
+
add_action('admin_notices', 'wp_review_admin_notice');
|
|
|
630 |
|
631 |
+
function wp_review_admin_notice() {
|
632 |
+
global $current_user ;
|
633 |
+
$user_id = $current_user->ID;
|
634 |
+
/* Check that the user hasn't already clicked to ignore the message */
|
635 |
+
if ( ! get_user_meta($user_id, 'wp_review_ignore_notice') ) {
|
636 |
+
echo '<div class="updated notice-info wp-review-notice" id="wpreview-notice" style="position:relative;">';
|
637 |
+
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><a class="notice-dismiss" href="%1$s"></a>'), '?wp_review_admin_notice_ignore=0');
|
638 |
echo "</div>";
|
639 |
+
}
|
640 |
+
}
|
641 |
+
|
642 |
+
add_action('admin_init', 'wp_review_admin_notice_ignore');
|
643 |
+
|
644 |
+
function wp_review_admin_notice_ignore() {
|
645 |
+
global $current_user;
|
646 |
+
$user_id = $current_user->ID;
|
647 |
+
/* If user clicks to ignore the notice, add that to their user meta */
|
648 |
+
if ( isset($_GET['wp_review_admin_notice_ignore']) && '0' == $_GET['wp_review_admin_notice_ignore'] ) {
|
649 |
+
add_user_meta($user_id, 'wp_review_ignore_notice', 'true', true);
|
650 |
+
}
|
651 |
}
|
|
|
652 |
|
653 |
?>
|
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.3
|
7 |
-
Stable tag: 3.3.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -89,6 +89,9 @@ Please disable all plugins and check if rating is working properly. Then you can
|
|
89 |
|
90 |
== Changelog ==
|
91 |
|
|
|
|
|
|
|
92 |
= 3.3.3 =
|
93 |
* Fixed function conflict with WP Subscribe Plugin
|
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.3
|
7 |
+
Stable tag: 3.3.4
|
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.4 =
|
93 |
+
* Fixed notification closing issue
|
94 |
+
|
95 |
= 3.3.3 =
|
96 |
* Fixed function conflict with WP Subscribe Plugin
|
97 |
|
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.
|
7 |
* Author: MyThemesShop
|
8 |
* Author URI: http://mythemeshop.com/
|
9 |
*
|
@@ -26,7 +26,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
26 |
if ( ! defined( 'MTS_WP_REVIEW_DB_TABLE' ) ) {
|
27 |
|
28 |
/* Plugin version */
|
29 |
-
define( 'WP_REVIEW_PLUGIN_VERSION', '3.3.
|
30 |
|
31 |
/* Sets the custom db table name. */
|
32 |
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: 3.3.4
|
7 |
* Author: MyThemesShop
|
8 |
* Author URI: http://mythemeshop.com/
|
9 |
*
|
26 |
if ( ! defined( 'MTS_WP_REVIEW_DB_TABLE' ) ) {
|
27 |
|
28 |
/* Plugin version */
|
29 |
+
define( 'WP_REVIEW_PLUGIN_VERSION', '3.3.4' );
|
30 |
|
31 |
/* Sets the custom db table name. */
|
32 |
define( 'MTS_WP_REVIEW_DB_TABLE', 'mts_wp_reviews' );
|