Skip to content

Commit 247751e

Browse files
v3.0.1
1 parent 32a9e5f commit 247751e

5 files changed

+61
-35
lines changed

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

+28-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,35 @@
1313

1414
class Alg_WC_Wish_List_Settings_Section {
1515

16+
/**
17+
* Id.
18+
*
19+
* @since 3.0.1
20+
*/
21+
public $id;
22+
23+
/**
24+
* Desc.
25+
*
26+
* @since 3.0.1
27+
*/
28+
public $desc;
29+
30+
/**
31+
* Settings.
32+
*
33+
* @since 3.0.1
34+
*/
1635
protected $settings;
17-
protected $handle_autoload=true;
36+
37+
/**
38+
* Handle autoload.
39+
*
40+
* @since 3.0.1
41+
*
42+
* @var bool|mixed
43+
*/
44+
protected $handle_autoload = true;
1845

1946
/**
2047
* Constructor.

includes/class-alg-wc-wish-list-core.php

+7-13
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Wish List for WooCommerce - Core Class.
44
*
5-
* @version 3.0.0
5+
* @version 3.0.1
66
* @since 1.0.0
77
* @author WPFactory.
88
*/
@@ -21,7 +21,7 @@ final class Alg_WC_Wish_List_Core {
2121
* @var string
2222
* @since 1.0.0
2323
*/
24-
public $version = '3.0.0';
24+
public $version = '3.0.1';
2525

2626
/**
2727
* @var Alg_WC_Wish_List_Core The single instance of the class
@@ -33,7 +33,7 @@ final class Alg_WC_Wish_List_Core {
3333
* @var Alg_WC_Wish_List_Report The single instance of the class
3434
* @since 1.0.0
3535
*/
36-
public static $_report = null;
36+
public $report = null;
3737

3838
/**
3939
* Main Alg_WC_Wish_List_Core Instance
@@ -119,7 +119,7 @@ public static function delete_meta_data(){
119119
/**
120120
* Constructor.
121121
*
122-
* @version 2.2.0
122+
* @version 3.0.1
123123
* @since 1.0.0
124124
*/
125125
function __construct() {
@@ -138,10 +138,8 @@ function __construct() {
138138
// Check if plugin is enabled on admin.
139139
if ( true === filter_var( get_option( 'alg_wc_wl_enabled', false ), FILTER_VALIDATE_BOOLEAN ) && true === apply_filters( 'alg_wc_wl_enabled' , true ) ) {
140140

141-
142141
// Scripts
143142
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
144-
145143

146144
// Handle custom style.
147145
if ( true === filter_var( get_option( Alg_WC_Wish_List_Settings_Style::OPTION_STYLE_ENABLE, false ), FILTER_VALIDATE_BOOLEAN ) ) {
@@ -230,27 +228,23 @@ function __construct() {
230228
add_filter( 'alg_wc_wl_btn_enabled', array( $this, 'disable_buttons_to_unlogged_users' ) );
231229

232230
// Report.
233-
$report = new Alg_WC_Wish_List_Report();
234-
$this->_report = $report;
235-
$report->init();
236-
231+
$this->report = new Alg_WC_Wish_List_Report();
232+
$this->report->init();
237233

238234
// Shortcodes.
239235
$shortcodes = new Alg_WC_Wish_List_Shortcodes();
240-
$shortcodes->set_report_class( $report );
236+
$shortcodes->set_report_class( $this->report );
241237
$shortcodes->init();
242238

243239
// JS Updater Events.
244240
add_action( 'wp_footer', array( $this, 'enable_js_updater_events' ) );
245241

246-
247242
// Block products grid.
248243
add_filter( 'woocommerce_blocks_product_grid_item_html', array( $this, 'change_render_product' ), 10, 3 );
249244

250245
// Remove all from wish list.
251246
add_filter( 'alg_wc_wl_remove_all_btn_label', array( $this, 'set_remove_all_btn_label' ) );
252247
add_filter( 'alg_wc_wl_all_removed_text', array( $this, 'set_all_removed_text' ) );
253-
254248

255249
// Manages custom actions
256250
$this->handle_custom_actions();

langs/wish-list-for-woocommerce.pot

+18-18
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
# This file is distributed under the GNU General Public License v3.0.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: wish-list-for-woocommerce 3.0.0\n"
5+
"Project-Id-Version: wish-list-for-woocommerce 3.0.1\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wish-list-for-woocommerce\n"
77
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
88
"Language-Team: LANGUAGE <[email protected]>\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=UTF-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
12-
"POT-Creation-Date: 2024-04-29T10:53:21+02:00\n"
12+
"POT-Creation-Date: 2024-05-21T22:09:28+02:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14-
"X-Generator: WP-CLI 2.9.0\n"
14+
"X-Generator: WP-CLI 2.7.1\n"
1515
"X-Domain: wish-list-for-woocommerce\n"
1616

1717
#. Plugin Name of the plugin
@@ -1118,7 +1118,7 @@ msgstr ""
11181118

11191119
#: includes/admin/class-alg-wc-wish-list-settings-shortcodes.php:111
11201120
#: includes/admin/class-alg-wc-wish-list-settings-texts.php:164
1121-
#: includes/class-alg-wc-wish-list-core.php:330
1121+
#: includes/class-alg-wc-wish-list-core.php:324
11221122
#: includes/free/class-alg-wc-wish-list-shortcodes.php:374
11231123
msgid "Remove all"
11241124
msgstr ""
@@ -1148,7 +1148,7 @@ msgid "Style > Thumb button > Icon - Added"
11481148
msgstr ""
11491149

11501150
#: includes/admin/class-alg-wc-wish-list-settings-social.php:37
1151-
#: includes/class-alg-wc-wish-list-core.php:1163
1151+
#: includes/class-alg-wc-wish-list-core.php:1157
11521152
msgid "Share"
11531153
msgstr ""
11541154

@@ -1842,7 +1842,7 @@ msgid "The success notification after all items have been removed from wishlist.
18421842
msgstr ""
18431843

18441844
#: includes/admin/class-alg-wc-wish-list-settings-texts.php:172
1845-
#: includes/class-alg-wc-wish-list-core.php:995
1845+
#: includes/class-alg-wc-wish-list-core.php:989
18461846
msgid "All the items have been removed from your wishlist."
18471847
msgstr ""
18481848

@@ -1949,46 +1949,46 @@ msgstr ""
19491949
msgid "Visit my Wishlist"
19501950
msgstr ""
19511951

1952-
#: includes/class-alg-wc-wish-list-core.php:317
1952+
#: includes/class-alg-wc-wish-list-core.php:311
19531953
msgid "All the items have been removed from your wish list."
19541954
msgstr ""
19551955

1956-
#: includes/class-alg-wc-wish-list-core.php:895
1956+
#: includes/class-alg-wc-wish-list-core.php:889
19571957
#: includes/pro/class-alg-wc-wish-list-pro-user-profile.php:92
19581958
#: templates/wish-list.php:36
19591959
msgid "The Wish list is empty."
19601960
msgstr ""
19611961

1962-
#: includes/class-alg-wc-wish-list-core.php:994
1962+
#: includes/class-alg-wc-wish-list-core.php:988
19631963
#: includes/free/class-alg-wc-wish-list-ajax.php:377
19641964
#: includes/free/class-alg-wc-wish-list-ajax.php:531
19651965
#: includes/free/class-alg-wc-wish-list-email-sharing.php:196
19661966
#: includes/free/class-alg-wc-wish-list.php:180
19671967
msgid "Sorry, Some error occurred. Please, try again later."
19681968
msgstr ""
19691969

1970-
#: includes/class-alg-wc-wish-list-core.php:1407
1970+
#: includes/class-alg-wc-wish-list-core.php:1401
19711971
msgid "Select Wishlist"
19721972
msgstr ""
19731973

1974-
#: includes/class-alg-wc-wish-list-core.php:1413
1975-
#: includes/class-alg-wc-wish-list-core.php:1421
1974+
#: includes/class-alg-wc-wish-list-core.php:1407
1975+
#: includes/class-alg-wc-wish-list-core.php:1415
19761976
msgid "Create Wishlist"
19771977
msgstr ""
19781978

1979-
#: includes/class-alg-wc-wish-list-core.php:1414
1979+
#: includes/class-alg-wc-wish-list-core.php:1408
19801980
msgid "Done"
19811981
msgstr ""
19821982

1983-
#: includes/class-alg-wc-wish-list-core.php:1423
1983+
#: includes/class-alg-wc-wish-list-core.php:1417
19841984
msgid "Wishlist Name"
19851985
msgstr ""
19861986

1987-
#: includes/class-alg-wc-wish-list-core.php:1427
1987+
#: includes/class-alg-wc-wish-list-core.php:1421
19881988
msgid "Save Wishlist"
19891989
msgstr ""
19901990

1991-
#: includes/class-alg-wc-wish-list-core.php:1428
1991+
#: includes/class-alg-wc-wish-list-core.php:1422
19921992
msgid "Cancel"
19931993
msgstr ""
19941994

@@ -2063,8 +2063,8 @@ msgstr ""
20632063

20642064
#: includes/free/class-alg-wc-wish-list-stock-email.php:121
20652065
msgid ""
2066-
"Hello {username}, \n"
2067-
"\n"
2066+
"Hello {username}, \r\n"
2067+
"\r\n"
20682068
"{product_name} is in stock. Please, check it out on {site_title}"
20692069
msgstr ""
20702070

readme.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: wpcodefactory, omardabbas, karzin, anbinder, algoritmika, kousikmu
33
Tags: woocommerce, wishlist, woocommerce wishlist, add to wishlist, product wishlist
44
Requires at least: 6.1
55
Tested up to: 6.5
6-
Stable tag: 3.0.0
6+
Stable tag: 3.0.1
77
Requires PHP: 5.6.0
88
License: GNU General Public License v3.0
99
License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -258,6 +258,11 @@ Once activated, access the plugin's settings by navigating to “WooCommerce > S
258258

259259
== Changelog ==
260260

261+
= 3.0.1 - 21/05/2024 =
262+
* Fix - Products export fails.
263+
* Fix dynamic property PHP warnings.
264+
* WC tested up to: 8.9.
265+
261266
= 3.0.0 - 29/04/2024 =
262267
* Fix - Remove duplicate code.
263268
* WC tested up to: 8.8.

wish-list-for-woocommerce.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
Plugin Name: Wishlist for WooCommerce
44
Plugin URI: https://wpfactory.com/item/wish-list-woocommerce/
55
Description: Let your visitors show what products they like on your WooCommerce store with a <strong>Wishlist</strong>.
6-
Version: 3.0.0
6+
Version: 3.0.1
77
Author: WPFactory
88
Author URI: https://wpfactory.com/
99
Copyright: © 2023 WPFactory.
1010
License: GNU General Public License v3.0
1111
License URI: http://www.gnu.org/licenses/gpl-3.0.html
1212
Text Domain: wish-list-for-woocommerce
1313
WC requires at least: 3.0.0
14-
WC tested up to: 8.8
14+
WC tested up to: 8.9
1515
*/
1616

1717
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

0 commit comments

Comments
 (0)