Version Description
Download this release
Release Info
Developer | MyThemeShop |
Plugin | WP Review |
Version | 5.2.7 |
Comparing to | |
See all releases |
Code changes from version 5.2.6 to 5.2.7
- admin/class-wpr-review-notice.php +7 -5
- includes/functions.php +1 -1
- public/css/amp.css +1 -1
- readme.txt +6 -1
- wp-review.php +2 -2
admin/class-wpr-review-notice.php
CHANGED
@@ -126,11 +126,7 @@ class WPR_Review_Notice {
|
|
126 |
* Checks if should show the notice.
|
127 |
*/
|
128 |
private function should_show() {
|
129 |
-
|
130 |
-
if ( get_transient( 'wpr_review_notice_dismiss' ) ) {
|
131 |
-
return false;
|
132 |
-
}
|
133 |
-
|
134 |
if ( get_option( $this->dismiss_key ) ) {
|
135 |
return false;
|
136 |
}
|
@@ -139,6 +135,12 @@ class WPR_Review_Notice {
|
|
139 |
if ( $later_date > time() ) {
|
140 |
return false;
|
141 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
142 |
|
143 |
$query = wp_review_get_reviews_query(
|
144 |
'latest',
|
126 |
* Checks if should show the notice.
|
127 |
*/
|
128 |
private function should_show() {
|
129 |
+
|
|
|
|
|
|
|
|
|
130 |
if ( get_option( $this->dismiss_key ) ) {
|
131 |
return false;
|
132 |
}
|
135 |
if ( $later_date > time() ) {
|
136 |
return false;
|
137 |
}
|
138 |
+
|
139 |
+
// Backwards compatibility for transients used in versions <= 5.2.5
|
140 |
+
if ( get_transient( 'wpr_review_notice_dismiss' ) ) {
|
141 |
+
update_option( $this->dismiss_key, '1' );
|
142 |
+
return false;
|
143 |
+
}
|
144 |
|
145 |
$query = wp_review_get_reviews_query(
|
146 |
'latest',
|
includes/functions.php
CHANGED
@@ -3182,7 +3182,7 @@ function wp_review_schema_types() {
|
|
3182 |
*/
|
3183 |
function wp_review_get_schema_type_data( $type ) {
|
3184 |
$types = wp_review_schema_types();
|
3185 |
-
if ( ! isset( $types ) ) {
|
3186 |
return false;
|
3187 |
}
|
3188 |
return $types[ $type ];
|
3182 |
*/
|
3183 |
function wp_review_get_schema_type_data( $type ) {
|
3184 |
$types = wp_review_schema_types();
|
3185 |
+
if ( ! isset( $types[ $type ] ) ) {
|
3186 |
return false;
|
3187 |
}
|
3188 |
return $types[ $type ];
|
public/css/amp.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.
|
1 |
+
.review-thumbs .review-result-wrapper:after,.wp-review-default-template .review-list li:after,.wp-review-default-template:after{content:" ";display:block;height:0;visibility:hidden;clear:both}.wp-review-default-template,.wp-review-default-template *{-webkit-box-sizing:border-box;box-sizing:border-box}.wp-review-default-template{border:1px solid #e7e7e7}.wp-review-default-template .review-title{padding:15px;margin:0;background-color:#e7e7e7;color:#555;font-size:13px;font-size:0.8125rem;letter-spacing:0.15em;text-transform:uppercase;line-height:1}.wp-review-default-template .review-list{list-style-type:none;margin:0;padding:0}.wp-review-default-template .review-list li{padding:10px 15px}.wp-review-default-template .review-list li:nth-child(2n){background-color:#fafafa}.wp-review-default-template .review-list .review-circle,.wp-review-default-template .review-list .review-star,.wp-review-default-template .review-list .review-thumbs{float:right}.wp-review-default-template .review-desc{padding:10px 15px}.wp-review-default-template .review-total-wrapper{float:right;padding:10px 15px 20px;text-align:right}.wp-review-default-template .review-total-wrapper .review-total-box{font-size:40px;font-weight:700;text-align:right;padding:35px 0 20px;width:100%;overflow:hidden}.wp-review-default-template .review-total-wrapper .review-total{text-align:left}.wp-review-default-template .review-total-wrapper .review-circle{display:none}.wp-review-default-template .review-pros-cons{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:10px 15px 30px}.wp-review-default-template .review-pros-cons .mb-5 strong:before{content:"\f164";font-family:"FontAwesome";font-weight:normal;margin-right:5px;opacity:0.7}.wp-review-default-template .review-pros{-webkit-box-flex:0;-ms-flex:0 0 50%;flex:0 0 50%;padding-right:10px}.wp-review-default-template .review-cons{-webkit-box-flex:0;-ms-flex:0 0 50%;flex:0 0 50%;padding-left:10px}.wp-review-default-template .review-cons .mb-5 strong:before{content:"\f165";font-family:"FontAwesome";font-weight:normal;margin-right:5px;opacity:0.7}.wp-review-default-template .review-embed-code{padding:7px 15px 15px}.wp-review-default-template .review-embed-code label{margin-bottom:0.5em;font-weight:700}.wp-review-default-template .review-embed-code textarea{width:100%;padding:10px;-webkit-box-sizing:border-box;box-sizing:border-box;border:0;background:rgba(0, 0, 0, 0.05);display:block}.wp-review-default-template .review-embed-code,.wp-review-default-template .review-pros-cons,.wp-review-default-template .user-review-area{clear:both}.wp-review-default-template .review-embed-code,.wp-review-default-template .user-review-area{border-top:1px solid #e7e7e7}.wp-review-default-template .user-review-area{padding:10px 15px}.wp-review-default-template .user-review-area .user-review-title{display:inline;font-size:1em}.wp-review-default-template .user-review-area .review-circle,.wp-review-default-template .user-review-area .review-star,.wp-review-default-template .user-review-area .review-thumbs,.wp-review-default-template .user-review-area .wp-review-rating-input{float:right}.wp-review-default-template .user-review-area .user-review-title{font-weight:700}.review-links{list-style:none;padding:15px 15px 8px!important;margin:0!important;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%}.review-links li{display:inline-block;margin-bottom:10px}.review-links li a{display:block;padding:4px 10px;margin:0 10px 0 0;border:1px solid;border-radius:5px;outline:0}.review-links li:last-child a{margin-right:0}.review-links .review-links:not(:last-child) a{margin-right:10px}.review-star .review-result-wrapper{position:relative;overflow:hidden;display:inline-block;vertical-align:middle}.review-star .review-result{position:absolute;top:0;left:0;overflow:hidden}.review-percentage .review-result-wrapper,.review-point .review-result-wrapper{position:relative}.review-percentage .review-result,.review-point .review-result{position:absolute;top:0;left:0;height:100%;width:100%}.review-percentage .review-result-text,.review-point .review-result-text{position:relative;z-index:10}.review-thumbs .wpr-thumbs-down-button{float:right}.review-thumbs .wpr-thumbs-up-button{float:left;margin-right:10px}.review-circle input{width:30px;text-align:right;border:0;outline:0;background-color:transparent}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Creator's website link: http://mythemeshop.com/plugins/wp-review/
|
|
4 |
Tags: review, schema.org, rating, schema, user rating, google rating, star rating, product review
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.2.2
|
7 |
-
Stable tag: 5.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -103,6 +103,11 @@ Please disable all plugins and check if rating is working properly. Then you can
|
|
103 |
|
104 |
== Changelog ==
|
105 |
|
|
|
|
|
|
|
|
|
|
|
106 |
= v5.2.6 (Aug 13, 2019) =
|
107 |
* Fixed the notice reappearing issue if transients are cleared or expired
|
108 |
|
4 |
Tags: review, schema.org, rating, schema, user rating, google rating, star rating, product review
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.2.2
|
7 |
+
Stable tag: 5.2.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
103 |
|
104 |
== Changelog ==
|
105 |
|
106 |
+
= v5.2.7 (Aug 14, 2019) =
|
107 |
+
* Fixed button review box button styling in AMP pages
|
108 |
+
* Fixed one rare PHP error
|
109 |
+
* Improved notice dismiss functionality for old users
|
110 |
+
|
111 |
= v5.2.6 (Aug 13, 2019) =
|
112 |
* Fixed the notice reappearing issue if transients are cleared or expired
|
113 |
|
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: 5.2.
|
7 |
* Author: MyThemeShop
|
8 |
* Author URI: http://mythemeshop.com/
|
9 |
* Text Domain: wp-review
|
@@ -45,7 +45,7 @@ if ( version_compare( phpversion(), '5.6', '<' ) ) {
|
|
45 |
}
|
46 |
|
47 |
/* Plugin version */
|
48 |
-
define( 'WP_REVIEW_PLUGIN_VERSION', '5.2.
|
49 |
|
50 |
/* Sets the custom db table name. */
|
51 |
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: 5.2.7
|
7 |
* Author: MyThemeShop
|
8 |
* Author URI: http://mythemeshop.com/
|
9 |
* Text Domain: wp-review
|
45 |
}
|
46 |
|
47 |
/* Plugin version */
|
48 |
+
define( 'WP_REVIEW_PLUGIN_VERSION', '5.2.7' );
|
49 |
|
50 |
/* Sets the custom db table name. */
|
51 |
define( 'MTS_WP_REVIEW_DB_TABLE', 'mts_wp_reviews' );
|