Site Reviews - Version 5.21.4

Version Description

(2022-02-25) =

  • Fixed author filter when website has lots of users (the user query is restricted to the first 50 users, this is only a temporary fix until a more complete solution is ready)
  • Fixed a compatibility issue with PHP v5.6
Download this release

Release Info

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

Code changes from version 5.21.3 to 5.21.4

plugin/Database.php CHANGED
@@ -421,6 +421,7 @@ class Database
421
  {
422
  $args = wp_parse_args($args, [
423
  'fields' => ['ID', 'display_name'],
 
424
  'orderby' => 'display_name',
425
  ]);
426
  $users = get_users($args);
421
  {
422
  $args = wp_parse_args($args, [
423
  'fields' => ['ID', 'display_name'],
424
+ 'number' => 50, // only get the first 50 users!
425
  'orderby' => 'display_name',
426
  ]);
427
  $users = get_users($args);
plugin/Modules/Html/Settings.php CHANGED
@@ -161,8 +161,9 @@ class Settings
161
  */
162
  protected function isMultiDependency($path)
163
  {
164
- if (isset(glsr()->settings()[$path])) {
165
- $field = glsr()->settings()[$path];
 
166
  return ('checkbox' == $field['type'] && !empty($field['options']))
167
  || !empty($field['multiple']);
168
  }
161
  */
162
  protected function isMultiDependency($path)
163
  {
164
+ $settings = glsr()->settings();
165
+ if (isset($settings[$path])) {
166
+ $field = $settings[$path];
167
  return ('checkbox' == $field['type'] && !empty($field['options']))
168
  || !empty($field['multiple']);
169
  }
plugin/Modules/Multilingual/Wpml.php CHANGED
@@ -66,7 +66,7 @@ class Wpml implements Contract
66
  public function isEnabled()
67
  {
68
  return $this->isActive()
69
- && 'wpml' == glsr(OptionManager::class)->get('settings.general.multilingual');
70
  }
71
 
72
  /**
66
  public function isEnabled()
67
  {
68
  return $this->isActive()
69
+ && 'wpml' === glsr(OptionManager::class)->get('settings.general.multilingual');
70
  }
71
 
72
  /**
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: reviews, ratings, testimonials, woocommerce, product reviews, business rev
5
  Tested up to: 5.9
6
  Requires at least: 5.5
7
  Requires PHP: 5.6.20
8
- Stable tag: 5.21.3
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -142,6 +142,11 @@ All documentation can be found in the "Help" page of the plugin. If your questio
142
 
143
  ## Changelog
144
 
 
 
 
 
 
145
  = 5.21.3 (2022-02-22) =
146
 
147
  - Improved rendering of ratings on the All Reviews admin page
5
  Tested up to: 5.9
6
  Requires at least: 5.5
7
  Requires PHP: 5.6.20
8
+ Stable tag: 5.21.4
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
 
142
 
143
  ## Changelog
144
 
145
+ = 5.21.4 (2022-02-25) =
146
+
147
+ - Fixed author filter when website has lots of users (the user query is restricted to the first 50 users, this is only a temporary fix until a more complete solution is ready)
148
+ - Fixed a compatibility issue with PHP v5.6
149
+
150
  = 5.21.3 (2022-02-22) =
151
 
152
  - Improved rendering of ratings on the All Reviews admin page
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.21.3
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.21.4
11
  * Author: Paul Ryley
12
  * Author URI: https://geminilabs.io
13
  * License: GPL2