Version Description
(2021-07-01) =
- Added a
data-rating
attribute to the review ratings
Download this release
Release Info
Developer | geminilabs |
Plugin | Site Reviews |
Version | 5.12.3 |
Comparing to | |
See all releases |
Code changes from version 5.12.2 to 5.12.3
- config/settings.php +1 -1
- languages/site-reviews-en_US.mo +0 -0
- languages/site-reviews-en_US.po +4 -2
- languages/site-reviews.pot +1 -1
- plugin/Database/Query.php +2 -1
- plugin/Modules/Html/Partials/StarRating.php +1 -0
- readme.txt +5 -1
- site-reviews.php +1 -1
- templates/rating/stars.php +1 -1
- views/pages/documentation/support/basic-troubleshooting.php +9 -5
- views/pages/documentation/support/common-problems-and-solutions.php +2 -2
config/settings.php
CHANGED
@@ -69,7 +69,7 @@ return [
|
|
69 |
'polylang' => _x('Integrate with Polylang', 'admin-text', 'site-reviews'),
|
70 |
'wpml' => _x('Integrate with WPML', 'admin-text', 'site-reviews'),
|
71 |
],
|
72 |
-
'tooltip' => _x('Integrate with a multilingual plugin to calculate the combined ratings for all languages of a
|
73 |
'type' => 'select',
|
74 |
],
|
75 |
'settings.general.notifications' => [
|
69 |
'polylang' => _x('Integrate with Polylang', 'admin-text', 'site-reviews'),
|
70 |
'wpml' => _x('Integrate with WPML', 'admin-text', 'site-reviews'),
|
71 |
],
|
72 |
+
'tooltip' => _x('Integrate with a multilingual plugin to calculate the combined ratings for all languages of a page; and if you are assigning reviews to your pages, display reviews assigned to all languages of that page.', 'admin-text', 'site-reviews'),
|
73 |
'type' => 'select',
|
74 |
],
|
75 |
'settings.general.notifications' => [
|
languages/site-reviews-en_US.mo
CHANGED
Binary file
|
languages/site-reviews-en_US.po
CHANGED
@@ -612,10 +612,12 @@ msgstr "Integrate with WPML"
|
|
612 |
msgctxt "admin-text"
|
613 |
msgid ""
|
614 |
"Integrate with a multilingual plugin to calculate the combined ratings for "
|
615 |
-
"all languages of a
|
|
|
616 |
msgstr ""
|
617 |
"Integrate with a multilingual plugin to calculate the combined ratings for "
|
618 |
-
"all languages of a
|
|
|
619 |
|
620 |
#: config/settings.php:77
|
621 |
msgctxt "admin-text"
|
612 |
msgctxt "admin-text"
|
613 |
msgid ""
|
614 |
"Integrate with a multilingual plugin to calculate the combined ratings for "
|
615 |
+
"all languages of a page; and if you are assigning reviews to your pages, "
|
616 |
+
"display reviews assigned to all languages of that page."
|
617 |
msgstr ""
|
618 |
"Integrate with a multilingual plugin to calculate the combined ratings for "
|
619 |
+
"all languages of a page; and if you are assigning reviews to your pages, "
|
620 |
+
"display reviews assigned to all languages of that page."
|
621 |
|
622 |
#: config/settings.php:77
|
623 |
msgctxt "admin-text"
|
languages/site-reviews.pot
CHANGED
@@ -285,7 +285,7 @@ msgstr ""
|
|
285 |
|
286 |
#: config/settings.php:72
|
287 |
msgctxt "admin-text"
|
288 |
-
msgid "Integrate with a multilingual plugin to calculate the combined ratings for all languages of a
|
289 |
msgstr ""
|
290 |
|
291 |
#: config/settings.php:77
|
285 |
|
286 |
#: config/settings.php:72
|
287 |
msgctxt "admin-text"
|
288 |
+
msgid "Integrate with a multilingual plugin to calculate the combined ratings for all languages of a page; and if you are assigning reviews to your pages, display reviews assigned to all languages of that page."
|
289 |
msgstr ""
|
290 |
|
291 |
#: config/settings.php:77
|
plugin/Database/Query.php
CHANGED
@@ -104,7 +104,8 @@ class Query
|
|
104 |
{
|
105 |
$this->setArgs($args);
|
106 |
if (empty($postIds)) {
|
107 |
-
// We previously used a subquery here, but MariaDB
|
|
|
108 |
$postIds = glsr(Database::class)->dbGetCol($this->queryReviewIds());
|
109 |
}
|
110 |
$reviewIds = implode(',', Arr::uniqueInt(Cast::toArray($postIds)));
|
104 |
{
|
105 |
$this->setArgs($args);
|
106 |
if (empty($postIds)) {
|
107 |
+
// We previously used a subquery here, but MariaDB doesn't support LIMIT in subqueries
|
108 |
+
// https://mariadb.com/kb/en/subquery-limitations/
|
109 |
$postIds = glsr(Database::class)->dbGetCol($this->queryReviewIds());
|
110 |
}
|
111 |
$reviewIds = implode(',', Arr::uniqueInt(Cast::toArray($postIds)));
|
plugin/Modules/Html/Partials/StarRating.php
CHANGED
@@ -34,6 +34,7 @@ class StarRating implements PartialContract
|
|
34 |
'full_stars' => $this->getTemplate('full-star', $fullStars),
|
35 |
'half_stars' => $this->getTemplate('half-star', $halfStars),
|
36 |
'prefix' => $this->data->prefix,
|
|
|
37 |
'title' => sprintf($title, $this->data->rating, $maxRating, $this->data->count),
|
38 |
],
|
39 |
'partial' => $this,
|
34 |
'full_stars' => $this->getTemplate('full-star', $fullStars),
|
35 |
'half_stars' => $this->getTemplate('half-star', $halfStars),
|
36 |
'prefix' => $this->data->prefix,
|
37 |
+
'rating' => $this->data->rating,
|
38 |
'title' => sprintf($title, $this->data->rating, $maxRating, $this->data->count),
|
39 |
],
|
40 |
'partial' => $this,
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: reviews, ratings, testimonials, woocommerce, product reviews
|
|
5 |
Tested up to: 5.7
|
6 |
Requires at least: 5.5
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 5.12.
|
9 |
License: GPLv3
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -137,6 +137,10 @@ All documentation can be found in the "Help" page of the plugin. If your questio
|
|
137 |
|
138 |
## Changelog
|
139 |
|
|
|
|
|
|
|
|
|
140 |
= 5.12.2 (2021-06-12) =
|
141 |
|
142 |
- Fixed the Bulk Edit actions
|
5 |
Tested up to: 5.7
|
6 |
Requires at least: 5.5
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 5.12.3
|
9 |
License: GPLv3
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
137 |
|
138 |
## Changelog
|
139 |
|
140 |
+
= 5.12.3 (2021-07-01) =
|
141 |
+
|
142 |
+
- Added a `data-rating` attribute to the review ratings
|
143 |
+
|
144 |
= 5.12.2 (2021-06-12) =
|
145 |
|
146 |
- Fixed the Bulk Edit actions
|
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.12.
|
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.12.3
|
11 |
* Author: Paul Ryley
|
12 |
* Author URI: https://geminilabs.io
|
13 |
* License: GPL2
|
templates/rating/stars.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<div class="{{ prefix }}star-rating {{ prefix }}stars">
|
2 |
<span class="screen-reader-text">{{ title }}</span>
|
3 |
{{ full_stars }}{{ half_stars }}{{ empty_stars }}
|
4 |
</div>
|
1 |
+
<div class="{{ prefix }}star-rating {{ prefix }}stars" data-rating="{{ rating }}">
|
2 |
<span class="screen-reader-text">{{ title }}</span>
|
3 |
{{ full_stars }}{{ half_stars }}{{ empty_stars }}
|
4 |
</div>
|
views/pages/documentation/support/basic-troubleshooting.php
CHANGED
@@ -7,13 +7,17 @@
|
|
7 |
</button>
|
8 |
</h3>
|
9 |
<div id="support-basic-troubleshooting" class="inside">
|
10 |
-
<h3>Make sure you are using the latest version of Site Reviews.</h3>
|
11 |
<p>Site Reviews is updated frequently with bug patches, security updates, improvements, and new features. If you are not using the latest version and are experiencing problems, chances are good that your problem has already been addressed in the latest version.</p>
|
12 |
-
<h3>
|
13 |
-
<p>
|
14 |
-
<h3>Temporarily
|
|
|
|
|
15 |
<p>If switching to an official WordPress theme did not fix anything, the final thing to try is to deactivate all of your plugins except for Site Reviews. If this fixes the problem then there is a compatibility issue with one of your plugins.</p>
|
16 |
<p>To find out which plugin is incompatible with Site Reviews you will need to reactivate your plugins one-by-one until you find the plugin that is causing the problem. If you think that you’ve found the culprit, deactivate it and continue to test the rest of your plugins. Hopefully you won’t find any more but it’s always better to make sure.</p>
|
17 |
-
<
|
|
|
|
|
18 |
</div>
|
19 |
</div>
|
7 |
</button>
|
8 |
</h3>
|
9 |
<div id="support-basic-troubleshooting" class="inside">
|
10 |
+
<h3>1. Make sure you are using the latest version of Site Reviews.</h3>
|
11 |
<p>Site Reviews is updated frequently with bug patches, security updates, improvements, and new features. If you are not using the latest version and are experiencing problems, chances are good that your problem has already been addressed in the latest version.</p>
|
12 |
+
<h3>2. Run the repair tools.</h3>
|
13 |
+
<p>If you have recently upgraded to a new major version of Site Reviews and your reviews have stopped working, you may need to run the <code><a data-expand="#tools-migrate-plugin" href="<?= admin_url('edit.php?post_type='.glsr()->post_type.'&page=tools#tab-general'); ?>">Migrate Plugin</a></code> and <code><a data-expand="#tools-reset-assigned-meta" href="<?= admin_url('edit.php?post_type='.glsr()->post_type.'&page=tools#tab-general'); ?>">Reset Assigned Meta Values</a></code> tools. Normally you should see a notice on the WordPress Dashboard and on the Site Reviews admin pages when the database settings need upgrading; however, if you are experiencing problems with your reviews after updating Site Reviews, you can also run these tools manually.</p>
|
14 |
+
<h3>3. Temporarily switch to an official WordPress Theme.</h3>
|
15 |
+
<p>Try switching to an official WordPress Theme (i.e. Twenty Twenty) and then see if you are still experiencing problems with the plugin. If this fixes the problem then there is a compatibility issue with your theme.</p>
|
16 |
+
<h3>4. Temporarily deactivate all of your plugins.</h3>
|
17 |
<p>If switching to an official WordPress theme did not fix anything, the final thing to try is to deactivate all of your plugins except for Site Reviews. If this fixes the problem then there is a compatibility issue with one of your plugins.</p>
|
18 |
<p>To find out which plugin is incompatible with Site Reviews you will need to reactivate your plugins one-by-one until you find the plugin that is causing the problem. If you think that you’ve found the culprit, deactivate it and continue to test the rest of your plugins. Hopefully you won’t find any more but it’s always better to make sure.</p>
|
19 |
+
<div class="components-notice is-info">
|
20 |
+
<p class="components-notice__content">If you find an incompatible theme or plugin, please <code><a data-expand="#support-contact-support" href="<?= admin_url('edit.php?post_type='.glsr()->post_type.'&page=documentation#tab-support'); ?>">contact support</a></code> so we can fix it.</p>
|
21 |
+
</div>
|
22 |
</div>
|
23 |
</div>
|
views/pages/documentation/support/common-problems-and-solutions.php
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
<p>You may be using a caching plugin which is caching the database and preventing Site Reviews from storing the migration status. To fix this, you will need to flush your database cache and/or object cache and then try again.</p>
|
21 |
</li>
|
22 |
<li>
|
23 |
-
<p>You may have 3rd-party reviews that were not imported correctly. You can verify this by looking for reviews on the <a href="<?= admin_url('edit.php?post_type='.glsr()->post_type); ?>">All Reviews</a> page that do not have any stars. Clicking on these reviews will show a read-only editor and a notice alerting you that the review is an, "Unsupported Review Type". To fix this, please delete the invalid reviews and use the provided <a href="<?= admin_url('edit.php?post_type='.glsr()->post_type.'&page=tools#tab-general'); ?>" data-expand="#tools-import-reviews">Import Third Party Reviews</a> tool to re-import them.</p>
|
24 |
</li>
|
25 |
</ol>
|
26 |
<h3>The review form is not working, the submit button just spins.</h3>
|
@@ -51,7 +51,7 @@
|
|
51 |
<li>The Form Request is invalid</li>
|
52 |
</ul>
|
53 |
<p>To fix the nonce errors, make sure that you are not caching the review page for logged in users because Site Reviews adds a <a href="https://www.bynicolas.com/code/wordpress-nonce/" target="_blank">WordPress Nonce</a> token to the form if the user is logged in. Nonces are a standard WordPress security feature that r malicious form submissions, but they will not work if your web pages are being cached because the nonce tokens are time-sensitive and their validity expires after 12 hours.</p>
|
54 |
-
<p>Alternatively, you may remove the Nonce check <a data-expand="#faq-remove-nonce-check" href="<?= admin_url('edit.php?post_type='.glsr()->post_type.'&page=documentation#tab-faq'); ?>">
|
55 |
</li>
|
56 |
<li>
|
57 |
<h4 style="font-size:15px;"><?= __('Your review cannot be submitted at this time.', 'site-reviews'); ?></h4>
|
20 |
<p>You may be using a caching plugin which is caching the database and preventing Site Reviews from storing the migration status. To fix this, you will need to flush your database cache and/or object cache and then try again.</p>
|
21 |
</li>
|
22 |
<li>
|
23 |
+
<p>You may have 3rd-party reviews that were not imported correctly. You can verify this by looking for reviews on the <code><a href="<?= admin_url('edit.php?post_type='.glsr()->post_type); ?>">All Reviews</a></code> page that do not have any stars. Clicking on these reviews will show a read-only editor and a notice alerting you that the review is an, "Unsupported Review Type". To fix this, please delete the invalid reviews and use the provided <code><a href="<?= admin_url('edit.php?post_type='.glsr()->post_type.'&page=tools#tab-general'); ?>" data-expand="#tools-import-reviews">Import Third Party Reviews</a></code> tool to re-import them.</p>
|
24 |
</li>
|
25 |
</ol>
|
26 |
<h3>The review form is not working, the submit button just spins.</h3>
|
51 |
<li>The Form Request is invalid</li>
|
52 |
</ul>
|
53 |
<p>To fix the nonce errors, make sure that you are not caching the review page for logged in users because Site Reviews adds a <a href="https://www.bynicolas.com/code/wordpress-nonce/" target="_blank">WordPress Nonce</a> token to the form if the user is logged in. Nonces are a standard WordPress security feature that r malicious form submissions, but they will not work if your web pages are being cached because the nonce tokens are time-sensitive and their validity expires after 12 hours.</p>
|
54 |
+
<p>Alternatively, you may remove the Nonce check as shown in the FAQ page: <code><a data-expand="#faq-remove-nonce-check" href="<?= admin_url('edit.php?post_type='.glsr()->post_type.'&page=documentation#tab-faq'); ?>">How do I remove the WordPress Nonce check for logged in users?</a></code>.</p>
|
55 |
</li>
|
56 |
<li>
|
57 |
<h4 style="font-size:15px;"><?= __('Your review cannot be submitted at this time.', 'site-reviews'); ?></h4>
|