WooCommerce – Trustpilot (dynamic property error patch)

 0,00

& Free Shipping

Unofficial Trustpilot patch to fix deprecated errors.

Category:
Guaranteed Safe Checkout
Script Depot Logo

Unofficial Trustpilot patch to fix deprecated errors

Errors Fixed:

  • Creation of dynamic property Trustpilot\Review\Plugin::$plugin_version is deprecated in
  • Creation of dynamic property Trustpilot\Review\Admin::$plugin_slug is deprecated in
  • Creation of dynamic property Trustpilot\Review\Admin::$version is deprecated in
  • Creation of dynamic property Trustpilot\Review\TrustBox::$plugin_version is deprecated in

Code Added to Fix the Issues:

1. Plugin.php – Fixed dynamic property for $plugin_version:

/**
* The plugin version.
*
* @var string
*/
protected $plugin_version;// Inside the constructor:
$this->plugin_version = TRUSTPILOT_REVIEWS_VERSION;

2. Admin.php – Fixed dynamic property for $plugin_slug and $version:

/**
* Plugin slug.
*
* @var string
*/
protected $plugin_slug;/**
* Plugin version.
*
* @var string
*/
protected $version;// Inside the constructor:
$this->plugin_slug = $plugin->get_plugin_name();
$this->version = $plugin->get_plugin_version();

3. Admin.php – Fixed dynamic property for $version:

/**
* Plugin version.
*
* @var string
*/
protected $version;// Inside the constructor:
$this->version = $plugin->get_plugin_version();

4. TrustBox.php – Fixed dynamic property for $plugin_version:

/**
* The plugin version.
*
* @var string
*/
protected $plugin_version;// Inside the constructor:
$this->plugin_version = TRUSTPILOT_REVIEWS_VERSION;
Author: SpoelDesign
Site: https://spoeldesign.nl/

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Winkelwagen
WooCommerce – Trustpilot (dynamic property error patch)
 0,00
Scroll naar boven