Skip to content

Commit 24321fc

Browse files
v3.2.2
1 parent 4324d78 commit 24321fc

19 files changed

+1944
-1798
lines changed

includes/admin/class-alg-wc-wish-list-settings-admin.php

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Wishlist for WooCommerce - Advanced settings.
44
*
5-
* @version 2.3.7
5+
* @version 3.2.2
66
* @since 2.0.1
77
* @author WPFactory
88
*/
@@ -26,15 +26,27 @@ class Alg_WC_Wish_List_Settings_Admin extends Alg_WC_Wish_List_Settings_Section
2626
/**
2727
* Constructor.
2828
*
29-
* @version 2.3.7
29+
* @version 3.2.2
3030
* @since 2.0.1
3131
*/
32-
function __construct( $handle_autoload = true ) {
33-
$this->id = 'admin';
34-
$this->desc = __( 'Admin', 'wish-list-for-woocommerce' );
32+
function __construct( $handle_autoload = false ) {
33+
$this->id = 'admin';
3534
parent::__construct( $handle_autoload );
3635
}
3736

37+
/**
38+
* set_section_variables.
39+
*
40+
* @version 3.2.2
41+
* @since 3.2.2
42+
*
43+
* @return void
44+
*/
45+
public function set_section_variables() {
46+
parent::set_section_variables();
47+
$this->desc = __( 'Admin', 'wish-list-for-woocommerce' );
48+
}
49+
3850
/**
3951
* get_section_priority.
4052
*

includes/admin/class-alg-wc-wish-list-settings-advanced.php

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Wish List for WooCommerce - Advanced settings.
44
*
5-
* @version 3.1.0
5+
* @version 3.2.2
66
* @since 2.0.1
77
* @author WPFactory
88
*/
@@ -21,17 +21,28 @@ class Alg_WC_Wish_List_Settings_Advanced extends Alg_WC_Wish_List_Settings_Secti
2121
/**
2222
* Constructor.
2323
*
24-
* @version 2.3.7
24+
* @version 3.2.2
2525
* @since 2.0.1
2626
*/
27-
function __construct( $handle_autoload = true ) {
27+
function __construct( $handle_autoload = false ) {
2828
$this->id = 'advanced';
29-
$this->desc = __( 'Advanced', 'wish-list-for-woocommerce' );
3029
add_filter( 'woocommerce_get_settings_alg_wc_wish_list_' . $this->id, array( $this, 'get_settings' ), PHP_INT_MAX );
31-
3230
parent::__construct( $handle_autoload );
3331
}
3432

33+
/**
34+
* set_section_variables.
35+
*
36+
* @version 3.2.2
37+
* @since 3.2.2
38+
*
39+
* @return void
40+
*/
41+
public function set_section_variables() {
42+
parent::set_section_variables();
43+
$this->desc = __( 'Advanced', 'wish-list-for-woocommerce' );
44+
}
45+
3546
/**
3647
* get_section_priority.
3748
*

includes/admin/class-alg-wc-wish-list-settings-buttons.php

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Wish List for WooCommerce Pro - General Section Settings
44
*
5-
* @version 2.3.7
5+
* @version 3.2.2
66
* @since 1.5.0
77
* @author WPFactory.
88
*/
@@ -56,15 +56,26 @@ class Alg_WC_Wish_List_Settings_Buttons extends Alg_WC_Wish_List_Settings_Sectio
5656
/**
5757
* Constructor.
5858
*
59-
* @version 2.3.7
59+
* @version 3.2.2
6060
* @since 1.0.0
6161
*/
62-
function __construct( $handle_autoload = true ) {
62+
function __construct( $handle_autoload = false ) {
6363
$this->id = 'buttons';
6464
add_filter( 'woocommerce_get_settings_alg_wc_wish_list_' . $this->id, array( $this, 'get_settings' ), PHP_INT_MAX );
65+
parent::__construct( $handle_autoload );
66+
}
6567

68+
/**
69+
* set_section_variables.
70+
*
71+
* @version 3.2.2
72+
* @since 3.2.2
73+
*
74+
* @return void
75+
*/
76+
public function set_section_variables() {
77+
parent::set_section_variables();
6678
$this->desc = __( 'Buttons', 'wish-list-for-woocommerce' );
67-
parent::__construct( $handle_autoload );
6879
}
6980

7081
/**

includes/admin/class-alg-wc-wish-list-settings-compatibility.php

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Wish List for WooCommerce - Compatibility.
44
*
5-
* @version 2.3.7
5+
* @version 3.2.2
66
* @since 2.0.9
77
* @author WPFactory
88
*/
@@ -17,15 +17,27 @@ class Alg_WC_Wish_List_Settings_Compatibility extends Alg_WC_Wish_List_Settings_
1717
/**
1818
* Constructor.
1919
*
20-
* @version 2.3.7
20+
* @version 3.2.2
2121
* @since 2.0.9
2222
*/
23-
function __construct( $handle_autoload = true ) {
24-
$this->id = 'compatibility';
25-
$this->desc = __( 'Compatibility', 'wish-list-for-woocommerce' );
23+
function __construct( $handle_autoload = false ) {
24+
$this->id = 'compatibility';
2625
parent::__construct( $handle_autoload );
2726
}
2827

28+
/**
29+
* set_section_variables.
30+
*
31+
* @version 3.2.2
32+
* @since 3.2.2
33+
*
34+
* @return void
35+
*/
36+
public function set_section_variables() {
37+
parent::set_section_variables();
38+
$this->desc = __( 'Compatibility', 'wish-list-for-woocommerce' );
39+
}
40+
2941
/**
3042
* get_section_priority.
3143
*

includes/admin/class-alg-wc-wish-list-settings-general.php

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Wish List for WooCommerce Pro - General Section Settings.
44
*
5-
* @version 2.3.7
5+
* @version 3.2.2
66
* @since 1.0.0
77
* @author WPFactory.
88
*/
@@ -29,17 +29,30 @@ class Alg_WC_Wish_List_Settings_General extends Alg_WC_Wish_List_Settings_Sectio
2929
/**
3030
* Constructor.
3131
*
32-
* @version 1.0.0
32+
* @version 3.2.2
3333
* @since 1.0.0
3434
*/
35-
function __construct( $handle_autoload = true ) {
35+
function __construct( $handle_autoload = false ) {
3636
$this->id = '';
3737
add_filter( 'woocommerce_get_settings_alg_wc_wish_list_' . $this->id, array( $this, 'get_settings' ), PHP_INT_MAX );
3838

39-
$this->desc = __( 'General', 'wish-list-for-woocommerce' );
39+
//$this->desc = __( 'General', 'wish-list-for-woocommerce' );
4040
parent::__construct( $handle_autoload );
4141
}
4242

43+
/**
44+
* set_section_variables.
45+
*
46+
* @version 3.2.2
47+
* @since 3.2.2
48+
*
49+
* @return void
50+
*/
51+
public function set_section_variables() {
52+
parent::set_section_variables();
53+
$this->desc = __( 'General', 'wish-list-for-woocommerce' );
54+
}
55+
4356
/**
4457
* get_section_priority.
4558
*

includes/admin/class-alg-wc-wish-list-settings-list.php

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Wishlist for WooCommerce - Wishlist Section Settings
44
*
5-
* @version 3.1.8
5+
* @version 3.2.2
66
* @since 1.0.0
77
* @author WPFactory
88
*/
@@ -43,15 +43,26 @@ class Alg_WC_Wish_List_Settings_List extends Alg_WC_Wish_List_Settings_Section {
4343
/**
4444
* Constructor.
4545
*
46-
* @version 1.1.0
46+
* @version 3.2.2
4747
* @since 1.0.0
4848
*/
49-
function __construct( $handle_autoload = true ) {
49+
function __construct( $handle_autoload = false ) {
5050
$this->id = 'wish_list';
5151
add_filter( 'woocommerce_get_settings_alg_wc_wish_list_' . $this->id, array( $this, 'get_settings' ), PHP_INT_MAX );
52+
parent::__construct( $handle_autoload );
53+
}
5254

55+
/**
56+
* set_section_variables.
57+
*
58+
* @version 3.2.2
59+
* @since 3.2.2
60+
*
61+
* @return void
62+
*/
63+
public function set_section_variables() {
64+
parent::set_section_variables();
5365
$this->desc = __( 'Wishlist Page', 'wish-list-for-woocommerce' );
54-
parent::__construct( $handle_autoload );
5566
}
5667

5768
/**

includes/admin/class-alg-wc-wish-list-settings-notification.php

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Wishlist for WooCommerce - Notification settings
44
*
5-
* @version 2.3.7
5+
* @version 3.2.2
66
* @since 1.1.1
77
* @author WPFactory
88
*/
@@ -22,18 +22,29 @@ class Alg_WC_Wish_List_Settings_Notification extends Alg_WC_Wish_List_Settings_S
2222
/**
2323
* Constructor.
2424
*
25-
* @version 2.3.7
25+
* @version 3.2.2
2626
* @since 1.1.1
2727
*/
28-
function __construct( $handle_autoload = true ) {
28+
function __construct( $handle_autoload = false ) {
2929
$this->id = 'notification';
3030
add_filter( 'woocommerce_get_settings_alg_wc_wish_list_' . $this->id, array(
3131
$this,
3232
'get_settings'
3333
), PHP_INT_MAX );
34+
parent::__construct( $handle_autoload );
35+
}
3436

37+
/**
38+
* set_section_variables.
39+
*
40+
* @version 3.2.2
41+
* @since 3.2.2
42+
*
43+
* @return void
44+
*/
45+
public function set_section_variables() {
46+
parent::set_section_variables();
3547
$this->desc = __( 'Popup notifications', 'wish-list-for-woocommerce' );
36-
parent::__construct( $handle_autoload );
3748
}
3849

3950
/**

includes/admin/class-alg-wc-wish-list-settings-section.php

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Wishlist for WooCommerce - Section Settings.
44
*
5-
* @version 1.8.8
5+
* @version 3.2.2
66
* @since 1.0.0
77
* @author WPFactory
88
*/
@@ -47,19 +47,32 @@ class Alg_WC_Wish_List_Settings_Section {
4747
/**
4848
* Constructor.
4949
*
50-
* @version 1.8.8
50+
* @version 3.2.2
5151
* @since 1.0.0
5252
*/
53-
function __construct( $handle_autoload = true ) {
53+
function __construct( $handle_autoload = false ) {
5454
$this->handle_autoload = $handle_autoload;
5555
if ( $this->handle_autoload ) {
5656
$this->get_settings( array() );
5757
$this->handle_autoload();
5858
}
59+
add_filter( 'woocommerce_get_sections_alg_wc_wish_list', array( $this, 'set_section_variables' ), 3 );
5960
add_filter( 'woocommerce_get_sections_alg_wc_wish_list', array( $this, 'settings_section' ), $this->get_section_priority() );
6061
add_filter( 'woocommerce_get_settings_alg_wc_wish_list_' . $this->id, array( $this, 'get_settings' ), PHP_INT_MAX );
6162
}
6263

64+
/**
65+
* set_section_variables.
66+
*
67+
* @version 3.2.2
68+
* @since 3.2.2
69+
*
70+
* @return void
71+
*/
72+
function set_section_variables(){
73+
74+
}
75+
6376
/**
6477
* get_section_priority.
6578
*

includes/admin/class-alg-wc-wish-list-settings-shortcodes.php

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Wish List for WooCommerce Pro - Shortcodes.
44
*
5-
* @version 2.3.7
5+
* @version 3.2.2
66
* @since 2.2.1
77
* @author WPFactory.
88
*/
@@ -18,12 +18,11 @@ class Alg_WC_Wish_List_Settings_Shortcodes extends Alg_WC_Wish_List_Settings_Sec
1818
/**
1919
* Constructor.
2020
*
21-
* @version 2.3.7
21+
* @version 3.2.2
2222
* @since 2.2.1
2323
*/
24-
function __construct( $handle_autoload = true ) {
24+
function __construct( $handle_autoload = false ) {
2525
$this->id = 'shortcodes';
26-
$this->desc = __( 'Shortcodes', 'wish-list-for-woocommerce' );
2726
add_filter( 'woocommerce_get_settings_alg_wc_wish_list_' . $this->id, array(
2827
$this,
2928
'get_settings'
@@ -32,6 +31,19 @@ function __construct( $handle_autoload = true ) {
3231
parent::__construct( $handle_autoload );
3332
}
3433

34+
/**
35+
* set_section_variables.
36+
*
37+
* @version 3.2.2
38+
* @since 3.2.2
39+
*
40+
* @return void
41+
*/
42+
public function set_section_variables() {
43+
parent::set_section_variables();
44+
$this->desc = __( 'Shortcodes', 'wish-list-for-woocommerce' );
45+
}
46+
3547
/**
3648
* get_custom_product_taxonomies.
3749
*

0 commit comments

Comments
 (0)