Version Description
(2021-04-27) =
- Fixed the missing "terms" database column error for users who have not run the plugin migration from previous versions
Download this release
Release Info
Developer | geminilabs |
Plugin | Site Reviews |
Version | 5.10.2 |
Comparing to | |
See all releases |
Code changes from version 5.10.1 to 5.10.2
- plugin/Database.php +4 -0
- plugin/Modules/Migrations/Migrate_5_9_0.php +1 -2
- readme.txt +5 -1
- site-reviews.php +1 -1
plugin/Database.php
CHANGED
@@ -401,6 +401,10 @@ class Database
|
|
401 |
public function version($compareToVersion = null)
|
402 |
{
|
403 |
$dbVersion = Cast::toString(get_option(glsr()->prefix.'db_version'));
|
|
|
|
|
|
|
|
|
404 |
return isset($compareToVersion)
|
405 |
? version_compare($dbVersion, Cast::toString($compareToVersion), '>=')
|
406 |
: $dbVersion;
|
401 |
public function version($compareToVersion = null)
|
402 |
{
|
403 |
$dbVersion = Cast::toString(get_option(glsr()->prefix.'db_version'));
|
404 |
+
if (version_compare($dbVersion, '2', '>')) { // @compat version should always be less than 2 for now
|
405 |
+
update_option(glsr()->prefix.'db_version', '1.0');
|
406 |
+
$dbVersion = '1.0';
|
407 |
+
}
|
408 |
return isset($compareToVersion)
|
409 |
? version_compare($dbVersion, Cast::toString($compareToVersion), '>=')
|
410 |
: $dbVersion;
|
plugin/Modules/Migrations/Migrate_5_9_0.php
CHANGED
@@ -75,8 +75,7 @@ class Migrate_5_9_0
|
|
75 |
*/
|
76 |
protected function isDatabaseVersionUpdated()
|
77 |
{
|
78 |
-
|
79 |
-
if (glsr(SqlSchema::class)->columnExists($table, 'terms')) {
|
80 |
if (!glsr(Database::class)->version('1.1')) {
|
81 |
update_option(glsr()->prefix.'db_version', '1.1');
|
82 |
}
|
75 |
*/
|
76 |
protected function isDatabaseVersionUpdated()
|
77 |
{
|
78 |
+
if (glsr(SqlSchema::class)->columnExists('ratings', 'terms')) {
|
|
|
79 |
if (!glsr(Database::class)->version('1.1')) {
|
80 |
update_option(glsr()->prefix.'db_version', '1.1');
|
81 |
}
|
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.10.
|
9 |
License: GPLv3
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -135,6 +135,10 @@ All documentation can be found in the "Help" page of the plugin. If your questio
|
|
135 |
|
136 |
## Changelog
|
137 |
|
|
|
|
|
|
|
|
|
138 |
= 5.10.1 (2021-04-26) =
|
139 |
|
140 |
- Fixed the missing "terms" database column error for users who updated a fresh install of Site Reviews v5.9 to v5.10
|
5 |
Tested up to: 5.7
|
6 |
Requires at least: 5.5
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 5.10.2
|
9 |
License: GPLv3
|
10 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
135 |
|
136 |
## Changelog
|
137 |
|
138 |
+
= 5.10.2 (2021-04-27) =
|
139 |
+
|
140 |
+
- Fixed the missing "terms" database column error for users who have not run the plugin migration from previous versions
|
141 |
+
|
142 |
= 5.10.1 (2021-04-26) =
|
143 |
|
144 |
- Fixed the missing "terms" database column error for users who updated a fresh install of Site Reviews v5.9 to v5.10
|
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.10.
|
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.10.2
|
11 |
* Author: Paul Ryley
|
12 |
* Author URI: https://geminilabs.io
|
13 |
* License: GPL2
|