WP Review - Version 4.0.15

Version Description

Download this release

Release Info

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

Code changes from version 4.0.14 to 4.0.15

admin/options.php CHANGED
@@ -296,7 +296,7 @@ function wpreview_settings_page() {
296
</p>
297
298
<p class="submit">
299
- <a href="https://mythemeshop.com/#login" target="_blank" class="button-primary"><?php _e('Get Support for Free') ?></a>
300
</p>
301
</div>
302
296
</p>
297
298
<p class="submit">
299
+ <a href="https://mythemeshop.com/#login" target="_blank" class="button-primary"><?php _e('Get Support') ?></a>
300
</p>
301
</div>
302
assets/css/admin.css CHANGED
@@ -179,6 +179,9 @@ h4.wp-review-comment-title {
179
.wp-review-notice {
180
position: relative;
181
}
182
183
.settings-tab-styling .wp-review-plugin-backlink {
184
display: inline;
179
.wp-review-notice {
180
position: relative;
181
}
182
+ .wp-review-notice .notice-dismiss {
183
+ text-decoration: none;
184
+ }
185
186
.settings-tab-styling .wp-review-plugin-backlink {
187
display: inline;
includes/functions.php CHANGED
@@ -1341,7 +1341,7 @@ function wp_review_migrate_notice() {
1341
<?php
1342
}
1343
1344
- /* Display a notice*/
1345
1346
add_action('admin_notices', 'wp_review_admin_notice');
1347
@@ -1352,8 +1352,20 @@ function wp_review_admin_notice() {
1352
/* Only show the notice 2 days after plugin activation */
1353
if ( ! get_user_meta($user_id, 'wp_review_ignore_notice') && time() >= (get_option( 'wp_review_activated', 0 ) + (2 * 24 * 60 * 60)) ) {
1354
echo '<div class="updated notice-info wp-review-notice" id="wpreview-notice" style="position:relative;">';
1355
- 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 Review Pro Plugin</strong></a></p><a class="notice-dismiss" href="%1$s"></a>'), '?wp_review_admin_notice_ignore=0');
1356
- echo "</div>";
1357
}
1358
}
1359
@@ -1361,9 +1373,13 @@ add_action('admin_init', 'wp_review_admin_notice_ignore');
1361
1362
function wp_review_admin_notice_ignore() {
1363
global $current_user;
1364
- $user_id = $current_user->ID;
1365
- /* If user clicks to ignore the notice, add that to their user meta */
1366
- if ( isset($_GET['wp_review_admin_notice_ignore']) && '0' == $_GET['wp_review_admin_notice_ignore'] ) {
1367
- add_user_meta($user_id, 'wp_review_ignore_notice', 'true', true);
1368
}
1369
}
1341
<?php
1342
}
1343
1344
+ /* Display a notice */
1345
1346
add_action('admin_notices', 'wp_review_admin_notice');
1347
1352
/* Only show the notice 2 days after plugin activation */
1353
if ( ! get_user_meta($user_id, 'wp_review_ignore_notice') && time() >= (get_option( 'wp_review_activated', 0 ) + (2 * 24 * 60 * 60)) ) {
1354
echo '<div class="updated notice-info wp-review-notice" id="wpreview-notice" style="position:relative;">';
1355
+ printf(__('<p>Like WP Review plugin? You will LOVE <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 Review Pro!</strong></a></p><a class="notice-dismiss" href="%1$s"></a>', 'wp-review'), '?wp_review_admin_notice_ignore=0');
1356
+ echo "</div>";
1357
+ }
1358
+
1359
+ /* Other notice appears right after activating */
1360
+ /* And it gets hidden after showing 3 times */
1361
+ if ( ! get_user_meta($user_id, 'wp_review_ignore_notice_2') && get_option('wp_review_notice_views', 0) < 3 ) {
1362
+ $views = get_option('wp_review_notice_views', 0);
1363
+ update_option( 'wp_review_notice_views', ($views + 1) );
1364
+ echo '<div class="updated notice-info wp-review-notice" id="wpreview-notice2" style="position:relative;">';
1365
+ echo '<p>';
1366
+ _e('Thank you for trying WP Review. We hope you will like it.', 'wp-review');
1367
+ echo '</p><a class="notice-dismiss" href="%1$s"></a>';
1368
+ echo "</div>";
1369
}
1370
}
1371
1373
1374
function wp_review_admin_notice_ignore() {
1375
global $current_user;
1376
+ $user_id = $current_user->ID;
1377
+ /* If user clicks to ignore the notice, add that to their user meta */
1378
+ if ( isset($_GET['wp_review_admin_notice_ignore']) ) {
1379
+ if ( '0' == $_GET['wp_review_admin_notice_ignore'] ) {
1380
+ add_user_meta($user_id, 'wp_review_ignore_notice', '1', true);
1381
+ } elseif ( '1' == $_GET['wp_review_admin_notice_ignore'] ) {
1382
+ add_user_meta($user_id, 'wp_review_ignore_notice_2', '1', true);
1383
+ }
1384
}
1385
}
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.14
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -101,9 +101,12 @@ Please disable all plugins and check if rating is working properly. Then you can
101
7. Percentage Review type
102
103
== Changelog ==
104
-
105
= v4.0.14 (June 13, 2018) =
106
- * Fixed text-domain issue translations
107
108
= v4.0.13 (May 31, 2018) =
109
* Fixed disable review issue
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.15
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
101
7. Percentage Review type
102
103
== Changelog ==
104
+
105
+ = v4.0.15 (June 29, 2018) =
106
+ * Changed admin notices
107
+
108
= v4.0.14 (June 13, 2018) =
109
+ * Fixed text-domain issue translations
110
111
= v4.0.13 (May 31, 2018) =
112
* Fixed disable review issue
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.14
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.14' );
25
26
/* Sets the custom db table name. */
27
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: 4.0.15
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.15' );
25
26
/* Sets the custom db table name. */
27
define( 'MTS_WP_REVIEW_DB_TABLE', 'mts_wp_reviews' );