Site Reviews - Version 6.0.4

Version Description

(2022-09-15) =

  • Fixed a PHP 7.2 syntax error
  • Fixed add-on activation routines
  • Fixed autoloading for Php80 polyfill
  • Fixed footer notice placement
Download this release

Release Info

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

Code changes from version 6.0.3 to 6.0.4

plugin/Addons/Controller.php CHANGED
@@ -331,6 +331,27 @@ abstract class Controller extends BaseController
331
  return $domains;
332
  }
333
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
334
  /**
335
  * @return void
336
  * @action init
331
  return $domains;
332
  }
333
 
334
+ /**
335
+ * @return void
336
+ * @action {addon_id}/activate
337
+ */
338
+ public function install()
339
+ {
340
+ }
341
+
342
+ /**
343
+ * @return void
344
+ * @action admin_init
345
+ */
346
+ public function onActivation()
347
+ {
348
+ $activatedOption = glsr()->prefix.'activated_'.$this->addon->id;
349
+ if (empty(get_option($activatedOption))) {
350
+ $this->addon->action('activate');
351
+ update_option($activatedOption, true);
352
+ }
353
+ }
354
+
355
  /**
356
  * @return void
357
  * @action init
plugin/Addons/Hooks.php CHANGED
@@ -38,6 +38,8 @@ abstract class Hooks
38
  add_filter('site-reviews/addon/settings', [$this->controller, 'filterSettings']);
39
  add_filter('site-reviews/translation/entries', [$this->controller, 'filterTranslationEntries']);
40
  add_filter('site-reviews/translator/domains', [$this->controller, 'filterTranslatorDomains']);
 
 
41
  add_action('init', [$this->controller, 'registerBlocks'], 9);
42
  add_action('plugins_loaded', [$this->controller, 'registerLanguages']);
43
  add_action('init', [$this->controller, 'registerShortcodes']);
38
  add_filter('site-reviews/addon/settings', [$this->controller, 'filterSettings']);
39
  add_filter('site-reviews/translation/entries', [$this->controller, 'filterTranslationEntries']);
40
  add_filter('site-reviews/translator/domains', [$this->controller, 'filterTranslatorDomains']);
41
+ add_filter($this->addon->id.'/activate', [$this->controller, 'install']);
42
+ add_action('admin_init', [$this->controller, 'onActivation']);
43
  add_action('init', [$this->controller, 'registerBlocks'], 9);
44
  add_action('plugins_loaded', [$this->controller, 'registerLanguages']);
45
  add_action('init', [$this->controller, 'registerShortcodes']);
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.3
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -156,9 +156,10 @@ 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.3 (2022-09-15) =
160
 
161
  - Fixed a PHP 7.2 syntax error
 
162
  - Fixed autoloading for Php80 polyfill
163
  - Fixed footer notice placement
164
 
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
 
157
  == Changelog ==
158
 
159
+ = 6.0.4 (2022-09-15) =
160
 
161
  - Fixed a PHP 7.2 syntax error
162
+ - Fixed add-on activation routines
163
  - Fixed autoloading for Php80 polyfill
164
  - Fixed footer notice placement
165
 
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.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: 6.0.4
11
  * Author: Paul Ryley
12
  * Author URI: https://geminilabs.io
13
  * License: GPL2