Skip to content

Commit 3ac2b1f

Browse files
v3.3.1
1 parent d0f2216 commit 3ac2b1f

8 files changed

+587
-576
lines changed

changelog-older.txt

Lines changed: 555 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class Alg_WC_Wish_List_Core {
2121
* @since 1.0.0
2222
* @var string
2323
*/
24-
public $version = '3.3.0';
24+
public $version = '3.3.1';
2525

2626
/**
2727
* @since 1.0.0

includes/free/class-alg-wc-wish-list-shortcodes.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Wishlist for WooCommerce - Shortcodes.
44
*
5-
* @version 3.2.5
5+
* @version 3.3.1
66
* @since 1.0.0
77
* @author WPFactory
88
*/
@@ -169,7 +169,7 @@ function sc_alg_wc_wl_item_users_amount( $atts ) {
169169
/**
170170
* Counts the amount of wishlisted items.
171171
*
172-
* @version 3.1.6
172+
* @version 3.3.1
173173
* @since 1.2.10
174174
*/
175175
public static function sc_alg_wc_wl_counter( $atts ) {
@@ -182,7 +182,7 @@ public static function sc_alg_wc_wl_counter( $atts ) {
182182
'amount' => '',
183183
), $atts, self::SHORTCODE_WISH_LIST_COUNT );
184184
$ignore_excluded_items = filter_var( $atts['ignore_excluded_items'], FILTER_VALIDATE_BOOLEAN );
185-
185+
$template = html_entity_decode( $atts['template'] );
186186
if ( empty( $atts['amount'] ) ) {
187187
$user_id_from_query_string = get_query_var( Alg_WC_Wish_List_Query_Vars::USER, null );
188188
$user_id = ! empty( $user_id_from_query_string ) ? Alg_WC_Wish_List_Query_Vars::crypt_user( $user_id_from_query_string, 'd' ) : null;
@@ -212,10 +212,9 @@ public static function sc_alg_wc_wl_counter( $atts ) {
212212
}
213213

214214
$array_from_to = array(
215-
'{content}' => $amount,
215+
'{content}' => intval( $amount ),
216216
);
217-
$output = str_replace( array_keys( $array_from_to ), $array_from_to, $atts['template'] );
218-
217+
$output = str_replace( array_keys( $array_from_to ), $array_from_to, wp_kses_post( $template ) );
219218
return $output;
220219
}
221220

langs/wish-list-for-woocommerce-fr_FR.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ msgstr ""
11411141
#: includes/admin/class-alg-wc-wish-list-settings-shortcodes.php:123
11421142
#: includes/admin/class-alg-wc-wish-list-settings-texts.php:177
11431143
#: includes/class-alg-wc-wish-list-core.php:425
1144-
#: includes/free/class-alg-wc-wish-list-shortcodes.php:473
1144+
#: includes/free/class-alg-wc-wish-list-shortcodes.php:472
11451145
msgid "Remove all"
11461146
msgstr "Tout supprimer"
11471147

@@ -2112,7 +2112,7 @@ msgstr ""
21122112
#: includes/admin/class-alg-wc-wish-list-settings-texts.php:287
21132113
#: includes/admin/class-alg-wc-wish-list-settings-texts.php:289
21142114
#: includes/free/class-alg-wc-wish-list-ajax.php:762
2115-
#: includes/free/class-alg-wc-wish-list-shortcodes.php:362
2115+
#: includes/free/class-alg-wc-wish-list-shortcodes.php:361
21162116
#: templates/admin-wish-list-multiple.php:122
21172117
msgid "Default Wishlist"
21182118
msgstr "Liste de souhaits par défaut"
@@ -2149,15 +2149,15 @@ msgstr "Liste de souhaits"
21492149
msgid "Check my Wish List"
21502150
msgstr "Vérifiez ma liste de souhaits"
21512151

2152-
#: includes/free/class-alg-wc-wish-list-shortcodes.php:402
2152+
#: includes/free/class-alg-wc-wish-list-shortcodes.php:401
21532153
msgid "Params:"
21542154
msgstr "Paramètres :"
21552155

2156-
#: includes/free/class-alg-wc-wish-list-shortcodes.php:443
2156+
#: includes/free/class-alg-wc-wish-list-shortcodes.php:442
21572157
msgid "Default value:"
21582158
msgstr "Valeur par défaut:"
21592159

2160-
#: includes/free/class-alg-wc-wish-list-shortcodes.php:446
2160+
#: includes/free/class-alg-wc-wish-list-shortcodes.php:445
21612161
msgid "Possible values:"
21622162
msgstr "Valeurs possibles:"
21632163

langs/wish-list-for-woocommerce-nl_NL.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ msgstr ""
11411141
#: includes/admin/class-alg-wc-wish-list-settings-shortcodes.php:123
11421142
#: includes/admin/class-alg-wc-wish-list-settings-texts.php:177
11431143
#: includes/class-alg-wc-wish-list-core.php:425
1144-
#: includes/free/class-alg-wc-wish-list-shortcodes.php:473
1144+
#: includes/free/class-alg-wc-wish-list-shortcodes.php:472
11451145
msgid "Remove all"
11461146
msgstr ""
11471147

@@ -2112,7 +2112,7 @@ msgstr ""
21122112
#: includes/admin/class-alg-wc-wish-list-settings-texts.php:287
21132113
#: includes/admin/class-alg-wc-wish-list-settings-texts.php:289
21142114
#: includes/free/class-alg-wc-wish-list-ajax.php:762
2115-
#: includes/free/class-alg-wc-wish-list-shortcodes.php:362
2115+
#: includes/free/class-alg-wc-wish-list-shortcodes.php:361
21162116
#: templates/admin-wish-list-multiple.php:122
21172117
msgid "Default Wishlist"
21182118
msgstr "Standaard verlanglijstje"
@@ -2149,15 +2149,15 @@ msgstr ""
21492149
msgid "Check my Wish List"
21502150
msgstr "Bekijk mijn verlanglijstje"
21512151

2152-
#: includes/free/class-alg-wc-wish-list-shortcodes.php:402
2152+
#: includes/free/class-alg-wc-wish-list-shortcodes.php:401
21532153
msgid "Params:"
21542154
msgstr "Parameters:"
21552155

2156-
#: includes/free/class-alg-wc-wish-list-shortcodes.php:443
2156+
#: includes/free/class-alg-wc-wish-list-shortcodes.php:442
21572157
msgid "Default value:"
21582158
msgstr "Standaardwaarde:"
21592159

2160-
#: includes/free/class-alg-wc-wish-list-shortcodes.php:446
2160+
#: includes/free/class-alg-wc-wish-list-shortcodes.php:445
21612161
msgid "Possible values:"
21622162
msgstr "Mogelijke waarden:"
21632163

langs/wish-list-for-woocommerce.pot

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
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.3.0\n"
5+
"Project-Id-Version: wish-list-for-woocommerce 3.3.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 <LL@li.org>\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: 2025-11-27T00:22:17+01:00\n"
12+
"POT-Creation-Date: 2025-12-15T19:14:55+01:00\n"
1313
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1414
"X-Generator: WP-CLI 2.7.1\n"
1515
"X-Domain: wish-list-for-woocommerce\n"
@@ -1236,7 +1236,7 @@ msgstr ""
12361236
#: includes/admin/class-alg-wc-wish-list-settings-shortcodes.php:123
12371237
#: includes/admin/class-alg-wc-wish-list-settings-texts.php:177
12381238
#: includes/class-alg-wc-wish-list-core.php:425
1239-
#: includes/free/class-alg-wc-wish-list-shortcodes.php:473
1239+
#: includes/free/class-alg-wc-wish-list-shortcodes.php:472
12401240
msgid "Remove all"
12411241
msgstr ""
12421242

@@ -2189,7 +2189,7 @@ msgstr ""
21892189
#: includes/admin/class-alg-wc-wish-list-settings-texts.php:287
21902190
#: includes/admin/class-alg-wc-wish-list-settings-texts.php:289
21912191
#: includes/free/class-alg-wc-wish-list-ajax.php:762
2192-
#: includes/free/class-alg-wc-wish-list-shortcodes.php:362
2192+
#: includes/free/class-alg-wc-wish-list-shortcodes.php:361
21932193
#: templates/admin-wish-list-multiple.php:122
21942194
msgid "Default Wishlist"
21952195
msgstr ""
@@ -2276,15 +2276,15 @@ msgstr ""
22762276
msgid "Check my Wish List"
22772277
msgstr ""
22782278

2279-
#: includes/free/class-alg-wc-wish-list-shortcodes.php:402
2279+
#: includes/free/class-alg-wc-wish-list-shortcodes.php:401
22802280
msgid "Params:"
22812281
msgstr ""
22822282

2283-
#: includes/free/class-alg-wc-wish-list-shortcodes.php:443
2283+
#: includes/free/class-alg-wc-wish-list-shortcodes.php:442
22842284
msgid "Default value:"
22852285
msgstr ""
22862286

2287-
#: includes/free/class-alg-wc-wish-list-shortcodes.php:446
2287+
#: includes/free/class-alg-wc-wish-list-shortcodes.php:445
22882288
msgid "Possible values:"
22892289
msgstr ""
22902290

0 commit comments

Comments
 (0)