Site Reviews - Version 5.12.8

Version Description

(2021-07-12) =

  • Fixed PHP warning introduced in v5.12.7
Download this release

Release Info

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

Code changes from version 5.12.7 to 5.12.8

languages/site-reviews-en_US.po CHANGED
@@ -1611,22 +1611,22 @@ msgctxt "admin-text"
1611
  msgid "You have hidden all of the fields for this block."
1612
  msgstr "You have hidden all of the fields for this block."
1613
 
1614
- #: plugin/Commands/EnqueueAdminAssets.php:20
1615
  msgctxt "admin-text"
1616
  msgid "You can pin exceptional reviews so that they are always shown first."
1617
  msgstr "You can pin exceptional reviews so that they are always shown first."
1618
 
1619
- #: plugin/Commands/EnqueueAdminAssets.php:28
1620
  msgctxt "admin-text"
1621
  msgid "Pin Your Reviews"
1622
  msgstr "Pin Your Reviews"
1623
 
1624
- #: plugin/Commands/EnqueueAdminAssets.php:99
1625
  msgctxt "admin-text"
1626
  msgid "Please rate %s on %s and help us spread the word. Thank you so much!"
1627
  msgstr "Please rate %s on %s and help us spread the word. Thank you so much!"
1628
 
1629
- #: plugin/Commands/EnqueueAdminAssets.php:100, views/pages/addons/index.php:18
1630
  msgctxt "admin-text"
1631
  msgid "Discover Premium"
1632
  msgstr "Discover Premium"
1611
  msgid "You have hidden all of the fields for this block."
1612
  msgstr "You have hidden all of the fields for this block."
1613
 
1614
+ #: plugin/Commands/EnqueueAdminAssets.php:21
1615
  msgctxt "admin-text"
1616
  msgid "You can pin exceptional reviews so that they are always shown first."
1617
  msgstr "You can pin exceptional reviews so that they are always shown first."
1618
 
1619
+ #: plugin/Commands/EnqueueAdminAssets.php:29
1620
  msgctxt "admin-text"
1621
  msgid "Pin Your Reviews"
1622
  msgstr "Pin Your Reviews"
1623
 
1624
+ #: plugin/Commands/EnqueueAdminAssets.php:101
1625
  msgctxt "admin-text"
1626
  msgid "Please rate %s on %s and help us spread the word. Thank you so much!"
1627
  msgstr "Please rate %s on %s and help us spread the word. Thank you so much!"
1628
 
1629
+ #: plugin/Commands/EnqueueAdminAssets.php:102, views/pages/addons/index.php:18
1630
  msgctxt "admin-text"
1631
  msgid "Discover Premium"
1632
  msgstr "Discover Premium"
languages/site-reviews.pot CHANGED
@@ -1238,22 +1238,22 @@ msgstr ""
1238
  msgid "Your review could not be submitted and the error has been logged. Please notify the site administrator."
1239
  msgstr ""
1240
 
1241
- #: plugin/Commands/EnqueueAdminAssets.php:20
1242
  msgctxt "admin-text"
1243
  msgid "You can pin exceptional reviews so that they are always shown first."
1244
  msgstr ""
1245
 
1246
- #: plugin/Commands/EnqueueAdminAssets.php:28
1247
  msgctxt "admin-text"
1248
  msgid "Pin Your Reviews"
1249
  msgstr ""
1250
 
1251
- #: plugin/Commands/EnqueueAdminAssets.php:99
1252
  msgctxt "admin-text"
1253
  msgid "Please rate %s on %s and help us spread the word. Thank you so much!"
1254
  msgstr ""
1255
 
1256
- #: plugin/Commands/EnqueueAdminAssets.php:100, views/pages/addons/index.php:18
1257
  msgctxt "admin-text"
1258
  msgid "Discover Premium"
1259
  msgstr ""
1238
  msgid "Your review could not be submitted and the error has been logged. Please notify the site administrator."
1239
  msgstr ""
1240
 
1241
+ #: plugin/Commands/EnqueueAdminAssets.php:21
1242
  msgctxt "admin-text"
1243
  msgid "You can pin exceptional reviews so that they are always shown first."
1244
  msgstr ""
1245
 
1246
+ #: plugin/Commands/EnqueueAdminAssets.php:29
1247
  msgctxt "admin-text"
1248
  msgid "Pin Your Reviews"
1249
  msgstr ""
1250
 
1251
+ #: plugin/Commands/EnqueueAdminAssets.php:101
1252
  msgctxt "admin-text"
1253
  msgid "Please rate %s on %s and help us spread the word. Thank you so much!"
1254
  msgstr ""
1255
 
1256
+ #: plugin/Commands/EnqueueAdminAssets.php:102, views/pages/addons/index.php:18
1257
  msgctxt "admin-text"
1258
  msgid "Discover Premium"
1259
  msgstr ""
plugin/Commands/EnqueueAdminAssets.php CHANGED
@@ -4,6 +4,7 @@ namespace GeminiLabs\SiteReviews\Commands;
4
 
5
  use GeminiLabs\SiteReviews\Contracts\CommandContract as Contract;
6
  use GeminiLabs\SiteReviews\Helper;
 
7
  use GeminiLabs\SiteReviews\Helpers\Str;
8
  use GeminiLabs\SiteReviews\Modules\Rating;
9
  use GeminiLabs\SiteReviews\Shortcodes\SiteReviewsFormShortcode;
@@ -70,6 +71,7 @@ class EnqueueAdminAssets implements Contract
70
  */
71
  public function localizeAssets()
72
  {
 
73
  $variables = [
74
  'action' => glsr()->prefix.'action',
75
  'addons' => [],
@@ -80,7 +82,7 @@ class EnqueueAdminAssets implements Contract
80
  'site_reviews_form' => glsr(SiteReviewsFormShortcode::class)->getHideOptions(),
81
  'site_reviews_summary' => glsr(SiteReviewsSummaryShortcode::class)->getHideOptions(),
82
  ],
83
- 'isLicensed' => Helper::ifTrue(empty(array_filter(glsr_get_option('licenses'))), 'no', 'yes'),
84
  'maxrating' => glsr()->constant('MAX_RATING', Rating::class),
85
  'minrating' => glsr()->constant('MIN_RATING', Rating::class),
86
  'nameprefix' => glsr()->id,
4
 
5
  use GeminiLabs\SiteReviews\Contracts\CommandContract as Contract;
6
  use GeminiLabs\SiteReviews\Helper;
7
+ use GeminiLabs\SiteReviews\Helpers\Arr;
8
  use GeminiLabs\SiteReviews\Helpers\Str;
9
  use GeminiLabs\SiteReviews\Modules\Rating;
10
  use GeminiLabs\SiteReviews\Shortcodes\SiteReviewsFormShortcode;
71
  */
72
  public function localizeAssets()
73
  {
74
+ $licenses = array_filter(Arr::consolidate(glsr_get_option('licenses')));
75
  $variables = [
76
  'action' => glsr()->prefix.'action',
77
  'addons' => [],
82
  'site_reviews_form' => glsr(SiteReviewsFormShortcode::class)->getHideOptions(),
83
  'site_reviews_summary' => glsr(SiteReviewsSummaryShortcode::class)->getHideOptions(),
84
  ],
85
+ 'isLicensed' => Helper::ifTrue(empty($licenses), 'no', 'yes'),
86
  'maxrating' => glsr()->constant('MAX_RATING', Rating::class),
87
  'minrating' => glsr()->constant('MIN_RATING', Rating::class),
88
  'nameprefix' => glsr()->id,
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.7
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.7 (2021-07-12) =
141
 
142
  - Improved the error message when saving add-on licenses to make it more descriptive and helpful.
5
  Tested up to: 5.7
6
  Requires at least: 5.5
7
  Requires PHP: 5.6
8
+ Stable tag: 5.12.8
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
137
 
138
  ## Changelog
139
 
140
+ = 5.12.8 (2021-07-12) =
141
+
142
+ - Fixed PHP warning introduced in v5.12.7
143
+
144
  = 5.12.7 (2021-07-12) =
145
 
146
  - Improved the error message when saving add-on licenses to make it more descriptive and helpful.
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.7
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.8
11
  * Author: Paul Ryley
12
  * Author URI: https://geminilabs.io
13
  * License: GPL2