Version Description
- Bug fix: undefined array key 'verified'
- Bug fix: trust badges shortcodes are not rendered on the frontend
Download this release
Release Info
Developer | ivole |
Plugin | Customer Reviews for WooCommerce |
Version | 5.8.1 |
Comparing to | |
See all releases |
Code changes from version 5.8.0 to 5.8.1
class-ivole-endpoint-replies.php → class-cr-endpoint-replies.php
RENAMED
File without changes
|
class-ivole.php
CHANGED
@@ -8,7 +8,7 @@ require_once( __DIR__ . '/includes/emails/class-cr-email-func.php' );
|
|
8 |
require_once( __DIR__ . '/includes/emails/class-cr-sender.php' );
|
9 |
require_once( __DIR__ . '/includes/emails/class-cr-email.php' );
|
10 |
require_once( __DIR__ . '/includes/emails/class-cr-email-coupon.php' );
|
11 |
-
require_once('class-
|
12 |
require_once('class-cr-referrals.php');
|
13 |
require_once( __DIR__ . '/includes/reminders/class-cr-manual.php' );
|
14 |
require_once( __DIR__ . '/includes/reminders/class-cr-admin-menu-reminders.php' );
|
@@ -67,7 +67,7 @@ require_once( __DIR__ . '/includes/qna/class-cr-qna-shortcode.php' );
|
|
67 |
require_once( __DIR__ . '/includes/qna/class-cr-qna-email.php' );
|
68 |
|
69 |
class Ivole {
|
70 |
-
const CR_VERSION = '5.8.
|
71 |
|
72 |
public function __construct() {
|
73 |
if( function_exists( 'wc' ) ) {
|
8 |
require_once( __DIR__ . '/includes/emails/class-cr-sender.php' );
|
9 |
require_once( __DIR__ . '/includes/emails/class-cr-email.php' );
|
10 |
require_once( __DIR__ . '/includes/emails/class-cr-email-coupon.php' );
|
11 |
+
require_once('class-cr-endpoint-replies.php');
|
12 |
require_once('class-cr-referrals.php');
|
13 |
require_once( __DIR__ . '/includes/reminders/class-cr-manual.php' );
|
14 |
require_once( __DIR__ . '/includes/reminders/class-cr-admin-menu-reminders.php' );
|
67 |
require_once( __DIR__ . '/includes/qna/class-cr-qna-email.php' );
|
68 |
|
69 |
class Ivole {
|
70 |
+
const CR_VERSION = '5.8.1';
|
71 |
|
72 |
public function __construct() {
|
73 |
if( function_exists( 'wc' ) ) {
|
includes/settings/class-cr-settings-cusrev.php
CHANGED
@@ -16,9 +16,12 @@ if ( ! class_exists( 'CR_CusRev_Settings' ) ):
|
|
16 |
$this->settings_menu = $settings_menu;
|
17 |
$this->tab = 'cusrev';
|
18 |
|
|
|
|
|
|
|
|
|
19 |
add_action( 'woocommerce_admin_field_verified_badge', array( $this, 'show_verified_badge_checkbox' ) );
|
20 |
add_action( 'woocommerce_admin_field_verified_page', array( $this, 'show_verified_page' ) );
|
21 |
-
add_filter( 'cr_settings_tabs', array( $this, 'register_tab' ) );
|
22 |
add_action( 'ivole_settings_display_' . $this->tab, array( $this, 'display' ) );
|
23 |
add_action( 'cr_save_settings_' . $this->tab, array( $this, 'save' ) );
|
24 |
add_action( 'admin_footer', array( $this, 'output_page_javascript' ) );
|
16 |
$this->settings_menu = $settings_menu;
|
17 |
$this->tab = 'cusrev';
|
18 |
|
19 |
+
// display CusRev.com tab only when review verification is enabled on the Review Reminder tab
|
20 |
+
if( 'yes' === get_option( 'ivole_verified_reviews', 'no' ) ) {
|
21 |
+
add_filter( 'cr_settings_tabs', array( $this, 'register_tab' ) );
|
22 |
+
}
|
23 |
add_action( 'woocommerce_admin_field_verified_badge', array( $this, 'show_verified_badge_checkbox' ) );
|
24 |
add_action( 'woocommerce_admin_field_verified_page', array( $this, 'show_verified_page' ) );
|
|
|
25 |
add_action( 'ivole_settings_display_' . $this->tab, array( $this, 'display' ) );
|
26 |
add_action( 'cr_save_settings_' . $this->tab, array( $this, 'save' ) );
|
27 |
add_action( 'admin_footer', array( $this, 'output_page_javascript' ) );
|
includes/trust-badge/class-cr-trust-badge.php
CHANGED
@@ -16,13 +16,11 @@ if (! class_exists('CR_Trust_Badge')) :
|
|
16 |
protected $lang;
|
17 |
|
18 |
public function __construct() {
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
add_action( 'init', array( $this, 'register_block' ) );
|
25 |
-
}
|
26 |
}
|
27 |
|
28 |
public function register_shortcode() {
|
@@ -198,7 +196,7 @@ if (! class_exists('CR_Trust_Badge')) :
|
|
198 |
$badgeColorClass = '';
|
199 |
$badgeClass = '';
|
200 |
$badgeStyle = '';
|
201 |
-
if( $storeStats['verified'] ) {
|
202 |
$badgeVerified = __( 'Independently verified', 'customer-reviews-woocommerce' );
|
203 |
$badgeVerifiedW = __( 'independently verified', 'customer-reviews-woocommerce' );
|
204 |
} else {
|
16 |
protected $lang;
|
17 |
|
18 |
public function __construct() {
|
19 |
+
$this->register_shortcode();
|
20 |
+
$this->lang = CR_Trust_Badge::get_badge_language();
|
21 |
+
add_action( 'init', array( 'CR_Reviews_Grid', 'cr_register_blocks_script' ) );
|
22 |
+
add_action( 'enqueue_block_assets', array( 'CR_Reviews_Grid', 'cr_enqueue_block_scripts' ) );
|
23 |
+
add_action( 'init', array( $this, 'register_block' ) );
|
|
|
|
|
24 |
}
|
25 |
|
26 |
public function register_shortcode() {
|
196 |
$badgeColorClass = '';
|
197 |
$badgeClass = '';
|
198 |
$badgeStyle = '';
|
199 |
+
if( isset( $storeStats['verified'] ) && $storeStats['verified'] ) {
|
200 |
$badgeVerified = __( 'Independently verified', 'customer-reviews-woocommerce' );
|
201 |
$badgeVerifiedW = __( 'independently verified', 'customer-reviews-woocommerce' );
|
202 |
} else {
|
ivole.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Customer Reviews for WooCommerce
|
4 |
Description: Customer Reviews for WooCommerce plugin helps you get more customer reviews for your shop by sending automated reminders and coupons.
|
5 |
Plugin URI: https://wordpress.org/plugins/customer-reviews-woocommerce/
|
6 |
-
Version: 5.8.
|
7 |
Author: CusRev
|
8 |
Author URI: https://www.cusrev.com/business/
|
9 |
Text Domain: customer-reviews-woocommerce
|
3 |
Plugin Name: Customer Reviews for WooCommerce
|
4 |
Description: Customer Reviews for WooCommerce plugin helps you get more customer reviews for your shop by sending automated reminders and coupons.
|
5 |
Plugin URI: https://wordpress.org/plugins/customer-reviews-woocommerce/
|
6 |
+
Version: 5.8.1
|
7 |
Author: CusRev
|
8 |
Author URI: https://www.cusrev.com/business/
|
9 |
Text Domain: customer-reviews-woocommerce
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: ivole
|
|
3 |
Tags: woocommerce, review plugin, review reminder, customer reviews, review for discount
|
4 |
Requires at least: 4.5
|
5 |
Tested up to: 6.1
|
6 |
-
Stable tag: 5.8.
|
7 |
License: GPLv3 or later
|
8 |
License URI: https://www.gnu.org/licenses/gpl.html
|
9 |
|
@@ -218,6 +218,9 @@ If you would like to change how reviews are sorted on product pages, it is possi
|
|
218 |
|
219 |
== Changelog ==
|
220 |
|
|
|
|
|
|
|
221 |
= 5.8.0 =
|
222 |
* New feature: trust badges for local (no verification) reviews
|
223 |
* Bug fix: anonymous display name option did not work on local (self-hosted) review forms in some cases
|
3 |
Tags: woocommerce, review plugin, review reminder, customer reviews, review for discount
|
4 |
Requires at least: 4.5
|
5 |
Tested up to: 6.1
|
6 |
+
Stable tag: 5.8.1
|
7 |
License: GPLv3 or later
|
8 |
License URI: https://www.gnu.org/licenses/gpl.html
|
9 |
|
218 |
|
219 |
== Changelog ==
|
220 |
|
221 |
+
= 5.8.1 =
|
222 |
+
* Bug fix: undefined array key 'verified'
|
223 |
+
* Bug fix: trust badges shortcodes are not rendered on the frontend
|
224 |
= 5.8.0 =
|
225 |
* New feature: trust badges for local (no verification) reviews
|
226 |
* Bug fix: anonymous display name option did not work on local (self-hosted) review forms in some cases
|
uninstall.php
CHANGED
@@ -25,7 +25,6 @@ $cr_uninstall_options = array(
|
|
25 |
'ivole_referrals_tracking',
|
26 |
'ivole_license_key',
|
27 |
'ivole_registered_customers',
|
28 |
-
'ivole_reviews_verified',
|
29 |
'ivole_reviews_verified_page',
|
30 |
'ivole_age_restriction',
|
31 |
'ivole_activation_notice',
|
25 |
'ivole_referrals_tracking',
|
26 |
'ivole_license_key',
|
27 |
'ivole_registered_customers',
|
|
|
28 |
'ivole_reviews_verified_page',
|
29 |
'ivole_age_restriction',
|
30 |
'ivole_activation_notice',
|