Version Description
(2021-11-24) =
- Fixed compatibility with Ultimate Member user avatars
Download this release
Release Info
Developer | geminilabs |
Plugin | Site Reviews |
Version | 5.17.8 |
Comparing to | |
See all releases |
Code changes from version 5.17.7 to 5.17.8
- plugin/Modules/Avatar.php +2 -2
- readme.txt +5 -1
- site-reviews.php +1 -1
plugin/Modules/Avatar.php
CHANGED
@@ -232,9 +232,9 @@ class Avatar
|
|
232 |
protected function userField($review)
|
233 |
{
|
234 |
if ($review->author_id) {
|
235 |
-
$value =
|
236 |
}
|
237 |
-
if (empty($value)) {
|
238 |
$value = $review->email;
|
239 |
}
|
240 |
return glsr()->filterString('avatar/id_or_email', $value, $review->toArray());
|
232 |
protected function userField($review)
|
233 |
{
|
234 |
if ($review->author_id) {
|
235 |
+
$value = $review->author_id;
|
236 |
}
|
237 |
+
if (empty($value) || !is_numeric($value)) {
|
238 |
$value = $review->email;
|
239 |
}
|
240 |
return glsr()->filterString('avatar/id_or_email', $value, $review->toArray());
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: reviews, ratings, testimonials, woocommerce, product reviews, business rev
|
|
5 |
Tested up to: 5.8
|
6 |
Requires at least: 5.5
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 5.17.
|
9 |
License: GPLv3
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -140,6 +140,10 @@ All documentation can be found in the "Help" page of the plugin. If your questio
|
|
140 |
|
141 |
## Changelog
|
142 |
|
|
|
|
|
|
|
|
|
143 |
= 5.17.7 (2021-11-23) =
|
144 |
|
145 |
- Added the "site-reviews/review/request" hook
|
5 |
Tested up to: 5.8
|
6 |
Requires at least: 5.5
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 5.17.8
|
9 |
License: GPLv3
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
140 |
|
141 |
## Changelog
|
142 |
|
143 |
+
= 5.17.8 (2021-11-24) =
|
144 |
+
|
145 |
+
- Fixed compatibility with Ultimate Member user avatars
|
146 |
+
|
147 |
= 5.17.7 (2021-11-23) =
|
148 |
|
149 |
- Added the "site-reviews/review/request" hook
|
site-reviews.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* Plugin Name: Site Reviews
|
8 |
* Plugin URI: https://wordpress.org/plugins/site-reviews
|
9 |
* Description: Receive and display reviews on your website
|
10 |
-
* Version: 5.17.
|
11 |
* Author: Paul Ryley
|
12 |
* Author URI: https://geminilabs.io
|
13 |
* License: GPL2
|
7 |
* Plugin Name: Site Reviews
|
8 |
* Plugin URI: https://wordpress.org/plugins/site-reviews
|
9 |
* Description: Receive and display reviews on your website
|
10 |
+
* Version: 5.17.8
|
11 |
* Author: Paul Ryley
|
12 |
* Author URI: https://geminilabs.io
|
13 |
* License: GPL2
|