Site Reviews - Version 6.0.5

Version Description

(2022-09-16) =

  • Fixed CSS loading on pages which do not load the Gutenberg button and search CSS
  • Fixed plugin migration to run immediately when the database version needs updating
Download this release

Release Info

Developer geminilabs
Plugin Icon 128x128 Site Reviews
Version 6.0.5
Comparing to
See all releases

Code changes from version 6.0.4 to 6.0.5

changelog.txt CHANGED
@@ -1,8 +1,16 @@
1
  == Changelog ==
2
 
3
- = 6.0.2 (2022-09-15) =
4
 
 
 
 
 
 
 
 
5
  - Fixed autoloading for Php80 polyfill
 
6
 
7
  = 6.0.1 (2022-09-15) =
8
 
1
  == Changelog ==
2
 
3
+ = 6.0.5 (2022-09-16) =
4
 
5
+ - Fixed CSS loading on pages which do not load the Gutenberg button and search CSS
6
+ - Fixed plugin migration to run immediately when the database version needs updating
7
+
8
+ = 6.0.4 (2022-09-15) =
9
+
10
+ - Fixed a PHP 7.2 syntax error
11
+ - Fixed add-on activation routines
12
  - Fixed autoloading for Php80 polyfill
13
+ - Fixed footer notice placement
14
 
15
  = 6.0.1 (2022-09-15) =
16
 
languages/site-reviews-en_US.po CHANGED
@@ -108,7 +108,7 @@ msgstr ""
108
  "Your review could not be submitted and the error has been logged. Please "
109
  "notify the site administrator."
110
 
111
- #: plugin/Commands/EnqueuePublicAssets.php:103
112
  msgid "Close Modal"
113
  msgstr "Close Modal"
114
 
@@ -1835,7 +1835,7 @@ msgctxt "admin-text"
1835
  msgid "Choose the action that should be taken when a review is blacklisted."
1836
  msgstr "Choose the action that should be taken when a review is blacklisted."
1837
 
1838
- #: plugin/Application.php:178, plugin/Controllers/SettingsController.php:175
1839
  msgctxt "admin-text"
1840
  msgid "License Keys"
1841
  msgstr "License Keys"
@@ -5222,7 +5222,7 @@ msgctxt "limit time (admin-text)"
5222
  msgid "days"
5223
  msgstr "days"
5224
 
5225
- #: plugin/Application.php:177
5226
  msgctxt "License Keys (admin-text)"
5227
  msgid ""
5228
  "Enter the license key here. Your license can be found on the %s page of "
108
  "Your review could not be submitted and the error has been logged. Please "
109
  "notify the site administrator."
110
 
111
+ #: plugin/Commands/EnqueuePublicAssets.php:102
112
  msgid "Close Modal"
113
  msgstr "Close Modal"
114
 
1835
  msgid "Choose the action that should be taken when a review is blacklisted."
1836
  msgstr "Choose the action that should be taken when a review is blacklisted."
1837
 
1838
+ #: plugin/Application.php:182, plugin/Controllers/SettingsController.php:175
1839
  msgctxt "admin-text"
1840
  msgid "License Keys"
1841
  msgstr "License Keys"
5222
  msgid "days"
5223
  msgstr "days"
5224
 
5225
+ #: plugin/Application.php:181
5226
  msgctxt "License Keys (admin-text)"
5227
  msgid ""
5228
  "Enter the license key here. Your license can be found on the %s page of "
languages/site-reviews.pot CHANGED
@@ -1309,12 +1309,12 @@ msgctxt "admin-text"
1309
  msgid "Choose the action that should be taken when a review is blacklisted."
1310
  msgstr ""
1311
 
1312
- #: plugin/Application.php:177
1313
  msgctxt "License Keys (admin-text)"
1314
  msgid "Enter the license key here. Your license can be found on the %s page of your Nifty Plugins account."
1315
  msgstr ""
1316
 
1317
- #: plugin/Application.php:178, plugin/Controllers/SettingsController.php:175
1318
  msgctxt "admin-text"
1319
  msgid "License Keys"
1320
  msgstr ""
@@ -1543,7 +1543,7 @@ msgctxt "admin-text"
1543
  msgid "Searching..."
1544
  msgstr ""
1545
 
1546
- #: plugin/Commands/EnqueuePublicAssets.php:103
1547
  msgid "Close Modal"
1548
  msgstr ""
1549
 
1309
  msgid "Choose the action that should be taken when a review is blacklisted."
1310
  msgstr ""
1311
 
1312
+ #: plugin/Application.php:181
1313
  msgctxt "License Keys (admin-text)"
1314
  msgid "Enter the license key here. Your license can be found on the %s page of your Nifty Plugins account."
1315
  msgstr ""
1316
 
1317
+ #: plugin/Application.php:182, plugin/Controllers/SettingsController.php:175
1318
  msgctxt "admin-text"
1319
  msgid "License Keys"
1320
  msgstr ""
1543
  msgid "Searching..."
1544
  msgstr ""
1545
 
1546
+ #: plugin/Commands/EnqueuePublicAssets.php:102
1547
  msgid "Close Modal"
1548
  msgstr ""
1549
 
plugin/Application.php CHANGED
@@ -7,6 +7,7 @@ use GeminiLabs\SiteReviews\Database\DefaultsManager;
7
  use GeminiLabs\SiteReviews\Database\OptionManager;
8
  use GeminiLabs\SiteReviews\Defaults\PermissionDefaults;
9
  use GeminiLabs\SiteReviews\Helpers\Arr;
 
10
 
11
  /**
12
  * @property array $addons
@@ -143,6 +144,10 @@ final class Application extends Container
143
  if (empty(get_option(OptionManager::databaseKey()))) {
144
  update_option(OptionManager::databaseKey(), $this->make(OptionManager::class)->previous());
145
  }
 
 
 
 
146
  $this->make(Hooks::class)->run();
147
  }
148
 
7
  use GeminiLabs\SiteReviews\Database\OptionManager;
8
  use GeminiLabs\SiteReviews\Defaults\PermissionDefaults;
9
  use GeminiLabs\SiteReviews\Helpers\Arr;
10
+ use GeminiLabs\SiteReviews\Modules\Migrate;
11
 
12
  /**
13
  * @property array $addons
144
  if (empty(get_option(OptionManager::databaseKey()))) {
145
  update_option(OptionManager::databaseKey(), $this->make(OptionManager::class)->previous());
146
  }
147
+ // Force an immediate plugin migration on database version upgrades
148
+ if (static::DB_VERSION !== get_option(static::PREFIX.'db_version')) {
149
+ $this->make(Migrate::class)->run();
150
+ }
151
  $this->make(Hooks::class)->run();
152
  }
153
 
plugin/Commands/EnqueuePublicAssets.php CHANGED
@@ -28,15 +28,14 @@ class EnqueuePublicAssets implements Contract
28
  {
29
  if (glsr()->filterBool('assets/css', true)) {
30
  // ensure block styles are loaded on post types with blocks disabled
31
- $blocks = \WP_Block_Type_Registry::get_instance()->get_all_registered();
32
- $dependencies = [];
33
- if (!empty($blocks['core/button']->style)) {
34
- $dependencies[] = $blocks['core/button']->style;
35
  }
36
- if (!empty($blocks['core/search']->style)) {
37
- $dependencies[] = $blocks['core/search']->style;
38
  }
39
- wp_enqueue_style(glsr()->id, glsr(AssetCss::class)->url(), $dependencies, glsr(AssetCss::class)->version());
40
  wp_add_inline_style(glsr()->id, $this->inlineStyles());
41
  glsr(AssetCss::class)->optimize();
42
  }
28
  {
29
  if (glsr()->filterBool('assets/css', true)) {
30
  // ensure block styles are loaded on post types with blocks disabled
31
+ $blocks = \WP_Block_Type_Registry::get_instance();
32
+ if ($blocks->is_registered('core/button')) {
33
+ wp_enqueue_style($blocks->get_registered('core/button')->style);
 
34
  }
35
+ if ($blocks->is_registered('core/search')) {
36
+ wp_enqueue_style($blocks->get_registered('core/search')->style);
37
  }
38
+ wp_enqueue_style(glsr()->id, glsr(AssetCss::class)->url(), [], glsr(AssetCss::class)->version());
39
  wp_add_inline_style(glsr()->id, $this->inlineStyles());
40
  glsr(AssetCss::class)->optimize();
41
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://ko-fi.com/pryley
4
  Tags: reviews, ratings, testimonials, woocommerce, product reviews, business reviews, stars, star ratings, elementor
5
  Tested up to: 6.0
6
  Requires at least: 5.8
7
- Stable tag: 6.0.4
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -156,6 +156,11 @@ This update requires a minimum of PHP 7.2 and WordPress 5.8. There are also a fe
156
 
157
  == Changelog ==
158
 
 
 
 
 
 
159
  = 6.0.4 (2022-09-15) =
160
 
161
  - Fixed a PHP 7.2 syntax error
4
  Tags: reviews, ratings, testimonials, woocommerce, product reviews, business reviews, stars, star ratings, elementor
5
  Tested up to: 6.0
6
  Requires at least: 5.8
7
+ Stable tag: 6.0.5
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
156
 
157
  == Changelog ==
158
 
159
+ = 6.0.5 (2022-09-16) =
160
+
161
+ - Fixed CSS loading on pages which do not load the Gutenberg button and search CSS
162
+ - Fixed plugin migration to run immediately when the database version needs updating
163
+
164
  = 6.0.4 (2022-09-15) =
165
 
166
  - Fixed a PHP 7.2 syntax error
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: 6.0.4
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: 6.0.5
11
  * Author: Paul Ryley
12
  * Author URI: https://geminilabs.io
13
  * License: GPL2