WPC Smart Wishlist for WooCommerce - Version 3.0.3

Version Description

  • Fixed: Security issues
Download this release

Release Info

Developer wpclever
Plugin Icon 128x128 WPC Smart Wishlist for WooCommerce
Version 3.0.3
Comparing to
See all releases

Code changes from version 3.0.2 to 3.0.3

includes/wpc-kit.php CHANGED
@@ -105,8 +105,8 @@ if ( ! class_exists( 'WPCleverKit' ) ) {
105
  }
106
 
107
  function admin_scripts() {
108
- wp_enqueue_style( 'wpckit-backend', WPC_URI . 'assets/kit/css/backend.css' );
109
- wp_enqueue_script( 'wpckit-backend', WPC_URI . 'assets/kit/js/backend.js', array(
110
  'jquery'
111
  ) );
112
  }
105
  }
106
 
107
  function admin_scripts() {
108
+ wp_enqueue_style( 'wpc-kit', WPC_URI . 'assets/kit/css/backend.css' );
109
+ wp_enqueue_script( 'wpc-kit', WPC_URI . 'assets/kit/js/backend.js', array(
110
  'jquery'
111
  ) );
112
  }
languages/woo-smart-wishlist.pot CHANGED
@@ -2,14 +2,14 @@
2
  # This file is distributed under the same license as the WPC Smart Wishlist for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WPC Smart Wishlist for WooCommerce 3.0.2\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woo-smart-wishlist\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2022-05-18T00:03:10+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.5.0\n"
15
  "X-Domain: woo-smart-wishlist\n"
@@ -34,672 +34,672 @@ msgstr ""
34
  msgid "https://wpclever.net"
35
  msgstr ""
36
 
37
- #: wpc-smart-wishlist.php:280
38
- #: wpc-smart-wishlist.php:337
39
- #: wpc-smart-wishlist.php:380
40
- #: wpc-smart-wishlist.php:1301
41
  msgid "Please log in to use the wishlist!"
42
  msgstr ""
43
 
44
- #: wpc-smart-wishlist.php:281
45
- #: wpc-smart-wishlist.php:354
46
- #: wpc-smart-wishlist.php:398
47
- #: wpc-smart-wishlist.php:413
48
- #: wpc-smart-wishlist.php:1274
49
- #: wpc-smart-wishlist.php:1522
50
  msgid "There are no products on the wishlist!"
51
  msgstr ""
52
 
53
- #: wpc-smart-wishlist.php:300
54
- #: wpc-smart-wishlist.php:1229
55
  msgid "Added to the wishlist!"
56
  msgstr ""
57
 
58
- #: wpc-smart-wishlist.php:303
59
- #: wpc-smart-wishlist.php:1238
60
  msgid "Already in the wishlist!"
61
  msgstr ""
62
 
63
- #: wpc-smart-wishlist.php:317
64
- #: wpc-smart-wishlist.php:362
65
- #: wpc-smart-wishlist.php:1319
66
  msgid "Have an error, please try again!"
67
  msgstr ""
68
 
69
- #: wpc-smart-wishlist.php:351
70
- #: wpc-smart-wishlist.php:1247
71
  msgid "Removed from wishlist!"
72
  msgstr ""
73
 
74
- #: wpc-smart-wishlist.php:357
75
- #: wpc-smart-wishlist.php:1292
76
  msgid "The product does not exist on the wishlist!"
77
  msgstr ""
78
 
79
- #: wpc-smart-wishlist.php:397
80
- #: wpc-smart-wishlist.php:1265
81
  msgid "All products were removed from your wishlist!"
82
  msgstr ""
83
 
84
- #: wpc-smart-wishlist.php:412
85
- #: wpc-smart-wishlist.php:437
86
  msgid "Please log in to use wishlist!"
87
  msgstr ""
88
 
89
- #: wpc-smart-wishlist.php:489
90
- #: wpc-smart-wishlist.php:1086
91
- #: wpc-smart-wishlist.php:1386
92
  msgid "Browse wishlist"
93
  msgstr ""
94
 
95
- #: wpc-smart-wishlist.php:491
96
- #: wpc-smart-wishlist.php:1077
97
- #: wpc-smart-wishlist.php:1385
98
  msgid "Add to wishlist"
99
  msgstr ""
100
 
101
- #: wpc-smart-wishlist.php:524
102
- #: wpc-smart-wishlist.php:982
103
  msgid "Facebook"
104
  msgstr ""
105
 
106
- #: wpc-smart-wishlist.php:525
107
- #: wpc-smart-wishlist.php:985
108
  msgid "Twitter"
109
  msgstr ""
110
 
111
- #: wpc-smart-wishlist.php:526
112
- #: wpc-smart-wishlist.php:988
113
  msgid "Pinterest"
114
  msgstr ""
115
 
116
- #: wpc-smart-wishlist.php:527
117
- #: wpc-smart-wishlist.php:991
118
  msgid "Mail"
119
  msgstr ""
120
 
121
- #: wpc-smart-wishlist.php:537
122
  msgid "Share on:"
123
  msgstr ""
124
 
125
- #: wpc-smart-wishlist.php:548
126
  msgid "Wishlist link:"
127
  msgstr ""
128
 
129
- #: wpc-smart-wishlist.php:550
130
  msgid "Copy"
131
  msgstr ""
132
 
133
- #: wpc-smart-wishlist.php:575
134
  msgid "Thank you for using our plugin! If you are satisfied, please reward it a full five-star %s rating."
135
  msgstr ""
136
 
137
- #: wpc-smart-wishlist.php:578
138
  msgid "Reviews"
139
  msgstr ""
140
 
141
- #: wpc-smart-wishlist.php:580
142
  msgid "Changelog"
143
  msgstr ""
144
 
145
- #: wpc-smart-wishlist.php:582
146
  msgid "Discussion"
147
  msgstr ""
148
 
149
- #: wpc-smart-wishlist.php:589
150
- #: wpc-smart-wishlist.php:1409
151
  msgid "Settings"
152
  msgstr ""
153
 
154
- #: wpc-smart-wishlist.php:593
155
- #: wpc-smart-wishlist.php:1066
156
  msgid "Localization"
157
  msgstr ""
158
 
159
- #: wpc-smart-wishlist.php:598
160
- #: wpc-smart-wishlist.php:1410
161
  msgid "Premium Version"
162
  msgstr ""
163
 
164
- #: wpc-smart-wishlist.php:601
165
  msgid "Essential Kit"
166
  msgstr ""
167
 
168
- #: wpc-smart-wishlist.php:616
169
  msgid "General"
170
  msgstr ""
171
 
172
- #: wpc-smart-wishlist.php:620
173
  msgid "Disable the wishlist for unauthenticated users"
174
  msgstr ""
175
 
176
- #: wpc-smart-wishlist.php:624
177
- #: wpc-smart-wishlist.php:637
178
- #: wpc-smart-wishlist.php:663
179
- #: wpc-smart-wishlist.php:840
180
- #: wpc-smart-wishlist.php:886
181
- #: wpc-smart-wishlist.php:905
182
- #: wpc-smart-wishlist.php:948
183
- #: wpc-smart-wishlist.php:962
184
- #: wpc-smart-wishlist.php:1001
185
- msgid "Yes"
186
- msgstr ""
187
-
188
- #: wpc-smart-wishlist.php:627
189
- #: wpc-smart-wishlist.php:640
190
  #: wpc-smart-wishlist.php:666
191
  #: wpc-smart-wishlist.php:843
192
- #: wpc-smart-wishlist.php:873
193
  #: wpc-smart-wishlist.php:889
194
  #: wpc-smart-wishlist.php:908
195
  #: wpc-smart-wishlist.php:951
196
  #: wpc-smart-wishlist.php:965
197
  #: wpc-smart-wishlist.php:1004
 
 
 
 
 
 
 
 
 
 
 
 
 
198
  msgid "No"
199
  msgstr ""
200
 
201
- #: wpc-smart-wishlist.php:633
202
  msgid "Auto remove"
203
  msgstr ""
204
 
205
- #: wpc-smart-wishlist.php:643
206
  msgid "Auto remove product from the wishlist after adding to the cart."
207
  msgstr ""
208
 
209
- #: wpc-smart-wishlist.php:648
210
- #: wpc-smart-wishlist.php:1153
211
  msgid "Multiple Wishlist"
212
  msgstr ""
213
 
214
- #: wpc-smart-wishlist.php:659
215
  msgid "Enable"
216
  msgstr ""
217
 
218
- #: wpc-smart-wishlist.php:669
219
  msgid "Enable/disable multiple wishlist."
220
  msgstr ""
221
 
222
- #: wpc-smart-wishlist.php:673
223
  msgid "Maximum wishlists per user"
224
  msgstr ""
225
 
226
- #: wpc-smart-wishlist.php:681
227
- #: wpc-smart-wishlist.php:692
228
  msgid "Button"
229
  msgstr ""
230
 
231
- #: wpc-smart-wishlist.php:684
232
  msgid "Settings for \"Add to wishlist\" button."
233
  msgstr ""
234
 
235
- #: wpc-smart-wishlist.php:688
236
  msgid "Type"
237
  msgstr ""
238
 
239
- #: wpc-smart-wishlist.php:695
240
  msgid "Link"
241
  msgstr ""
242
 
243
- #: wpc-smart-wishlist.php:701
244
- #: wpc-smart-wishlist.php:1037
245
  msgid "Action"
246
  msgstr ""
247
 
248
- #: wpc-smart-wishlist.php:705
249
  msgid "Show message"
250
  msgstr ""
251
 
252
- #: wpc-smart-wishlist.php:708
253
  msgid "Show product list"
254
  msgstr ""
255
 
256
- #: wpc-smart-wishlist.php:711
257
  msgid "Add to wishlist solely"
258
  msgstr ""
259
 
260
- #: wpc-smart-wishlist.php:714
261
  msgid "Action triggered by clicking on the wishlist button."
262
  msgstr ""
263
 
264
- #: wpc-smart-wishlist.php:718
265
  msgid "Action (added)"
266
  msgstr ""
267
 
268
- #: wpc-smart-wishlist.php:722
269
  msgid "Open wishlist popup"
270
  msgstr ""
271
 
272
- #: wpc-smart-wishlist.php:725
273
- #: wpc-smart-wishlist.php:1126
274
- #: wpc-smart-wishlist.php:1131
275
- #: wpc-smart-wishlist.php:1620
276
  msgid "Open wishlist page"
277
  msgstr ""
278
 
279
- #: wpc-smart-wishlist.php:728
280
  msgid "Action triggered by clicking on the wishlist button after adding an item to the wishlist."
281
  msgstr ""
282
 
283
- #: wpc-smart-wishlist.php:732
284
  msgid "Extra class (optional)"
285
  msgstr ""
286
 
287
- #: wpc-smart-wishlist.php:736
288
  msgid "Add extra class for action button/link, split by one space."
289
  msgstr ""
290
 
291
- #: wpc-smart-wishlist.php:740
292
  msgid "Position on archive page"
293
  msgstr ""
294
 
295
- #: wpc-smart-wishlist.php:745
296
- #: wpc-smart-wishlist.php:772
297
  msgid "Under title"
298
  msgstr ""
299
 
300
- #: wpc-smart-wishlist.php:746
301
- #: wpc-smart-wishlist.php:773
302
  msgid "Under rating"
303
  msgstr ""
304
 
305
- #: wpc-smart-wishlist.php:747
306
  msgid "Under price"
307
  msgstr ""
308
 
309
- #: wpc-smart-wishlist.php:748
310
- #: wpc-smart-wishlist.php:775
311
  msgid "Above add to cart button"
312
  msgstr ""
313
 
314
- #: wpc-smart-wishlist.php:749
315
- #: wpc-smart-wishlist.php:776
316
  msgid "Under add to cart button"
317
  msgstr ""
318
 
319
- #: wpc-smart-wishlist.php:750
320
- #: wpc-smart-wishlist.php:779
321
  msgid "None (hide it)"
322
  msgstr ""
323
 
324
- #: wpc-smart-wishlist.php:767
325
  msgid "Position on single page"
326
  msgstr ""
327
 
328
- #: wpc-smart-wishlist.php:774
329
  msgid "Under excerpt"
330
  msgstr ""
331
 
332
- #: wpc-smart-wishlist.php:777
333
  msgid "Under meta"
334
  msgstr ""
335
 
336
- #: wpc-smart-wishlist.php:778
337
  msgid "Under sharing"
338
  msgstr ""
339
 
340
- #: wpc-smart-wishlist.php:796
341
  msgid "Shortcode"
342
  msgstr ""
343
 
344
- #: wpc-smart-wishlist.php:799
345
  msgid "You can add a button manually by using the shortcode %s, eg. %s for the product whose ID is 99."
346
  msgstr ""
347
 
348
- #: wpc-smart-wishlist.php:804
349
  msgid "Categories"
350
  msgstr ""
351
 
352
- #: wpc-smart-wishlist.php:819
353
  msgid "All categories"
354
  msgstr ""
355
 
356
- #: wpc-smart-wishlist.php:824
357
  msgid "Only show the wishlist button for products in selected categories."
358
  msgstr ""
359
 
360
- #: wpc-smart-wishlist.php:829
361
  msgid "Popup"
362
  msgstr ""
363
 
364
- #: wpc-smart-wishlist.php:832
365
  msgid "Settings for the wishlist popup."
366
  msgstr ""
367
 
368
- #: wpc-smart-wishlist.php:836
369
  msgid "Use perfect-scrollbar"
370
  msgstr ""
371
 
372
- #: wpc-smart-wishlist.php:846
373
  msgid "Read more about %s"
374
  msgstr ""
375
 
376
- #: wpc-smart-wishlist.php:850
377
  msgid "Color"
378
  msgstr ""
379
 
380
- #: wpc-smart-wishlist.php:856
381
  msgid "Choose the color, default %s"
382
  msgstr ""
383
 
384
- #: wpc-smart-wishlist.php:860
385
  msgid "Link to individual product"
386
  msgstr ""
387
 
388
- #: wpc-smart-wishlist.php:864
389
  msgid "Yes, open in the same tab"
390
  msgstr ""
391
 
392
- #: wpc-smart-wishlist.php:867
393
  msgid "Yes, open in the new tab"
394
  msgstr ""
395
 
396
- #: wpc-smart-wishlist.php:870
397
  msgid "Yes, open quick view popup"
398
  msgstr ""
399
 
400
- #: wpc-smart-wishlist.php:882
401
  msgid "Show note"
402
  msgstr ""
403
 
404
- #: wpc-smart-wishlist.php:892
405
  msgid "Show note on each product for all visitors. Only wishlist owner can add/edit these notes."
406
  msgstr ""
407
 
408
- #: wpc-smart-wishlist.php:901
409
- #: wpc-smart-wishlist.php:1099
410
  msgid "Empty wishlist button"
411
  msgstr ""
412
 
413
- #: wpc-smart-wishlist.php:911
414
  msgid "Show empty wishlist button on the popup?"
415
  msgstr ""
416
 
417
- #: wpc-smart-wishlist.php:915
418
  msgid "Continue shopping link"
419
  msgstr ""
420
 
421
- #: wpc-smart-wishlist.php:920
422
  msgid "By default, the wishlist popup will only be closed when customers click on the \"Continue Shopping\" button."
423
  msgstr ""
424
 
425
- #: wpc-smart-wishlist.php:925
426
  msgid "Page"
427
  msgstr ""
428
 
429
- #: wpc-smart-wishlist.php:928
430
  msgid "Settings for wishlist page."
431
  msgstr ""
432
 
433
- #: wpc-smart-wishlist.php:932
434
  msgid "Wishlist page"
435
  msgstr ""
436
 
437
- #: wpc-smart-wishlist.php:937
438
  msgid "Choose a page"
439
  msgstr ""
440
 
441
- #: wpc-smart-wishlist.php:940
442
  msgid "Add shortcode %s to display the wishlist on a page."
443
  msgstr ""
444
 
445
- #: wpc-smart-wishlist.php:944
446
  msgid "Share buttons"
447
  msgstr ""
448
 
449
- #: wpc-smart-wishlist.php:954
450
  msgid "Enable share buttons on the wishlist page?"
451
  msgstr ""
452
 
453
- #: wpc-smart-wishlist.php:958
454
  msgid "Use font icon"
455
  msgstr ""
456
 
457
- #: wpc-smart-wishlist.php:971
458
  msgid "Social links"
459
  msgstr ""
460
 
461
- #: wpc-smart-wishlist.php:997
462
  msgid "Copy link"
463
  msgstr ""
464
 
465
- #: wpc-smart-wishlist.php:1007
466
  msgid "Enable copy wishlist link to share?"
467
  msgstr ""
468
 
469
- #: wpc-smart-wishlist.php:1012
470
  msgid "Menu"
471
  msgstr ""
472
 
473
- #: wpc-smart-wishlist.php:1015
474
  msgid "Settings for the wishlist menu item."
475
  msgstr ""
476
 
477
- #: wpc-smart-wishlist.php:1019
478
  msgid "Menu(s)"
479
  msgstr ""
480
 
481
- #: wpc-smart-wishlist.php:1033
482
  msgid "Choose the menu(s) you want to add the \"wishlist menu\" at the end."
483
  msgstr ""
484
 
485
- #: wpc-smart-wishlist.php:1041
486
  msgid "Open page"
487
  msgstr ""
488
 
489
- #: wpc-smart-wishlist.php:1044
490
  msgid "Open popup"
491
  msgstr ""
492
 
493
- #: wpc-smart-wishlist.php:1047
494
  msgid "Action when clicking on the \"wishlist menu\"."
495
  msgstr ""
496
 
497
- #: wpc-smart-wishlist.php:1053
498
- #: wpc-smart-wishlist.php:1325
499
  msgid "Update Options"
500
  msgstr ""
501
 
502
- #: wpc-smart-wishlist.php:1068
503
  msgid "Leave blank to use the default text and its equivalent translation in multiple languages."
504
  msgstr ""
505
 
506
- #: wpc-smart-wishlist.php:1072
507
  msgid "Button text"
508
  msgstr ""
509
 
510
- #: wpc-smart-wishlist.php:1081
511
  msgid "Button text (added)"
512
  msgstr ""
513
 
514
- #: wpc-smart-wishlist.php:1090
515
  msgid "Wishlist popup heading"
516
  msgstr ""
517
 
518
- #: wpc-smart-wishlist.php:1095
519
- #: wpc-smart-wishlist.php:1149
520
- #: wpc-smart-wishlist.php:1162
521
- #: wpc-smart-wishlist.php:1384
522
- #: wpc-smart-wishlist.php:1565
523
- #: wpc-smart-wishlist.php:1591
524
- #: wpc-smart-wishlist.php:1791
525
- #: wpc-smart-wishlist.php:1872
526
- #: wpc-smart-wishlist.php:1879
527
- #: wpc-smart-wishlist.php:2043
528
  msgid "Wishlist"
529
  msgstr ""
530
 
531
- #: wpc-smart-wishlist.php:1104
532
- #: wpc-smart-wishlist.php:1604
533
  msgid "remove all"
534
  msgstr ""
535
 
536
- #: wpc-smart-wishlist.php:1108
537
- #: wpc-smart-wishlist.php:1113
538
  msgid "Add note"
539
  msgstr ""
540
 
541
- #: wpc-smart-wishlist.php:1117
542
  msgid "Save note"
543
  msgstr ""
544
 
545
- #: wpc-smart-wishlist.php:1122
546
  msgid "Save"
547
  msgstr ""
548
 
549
- #: wpc-smart-wishlist.php:1135
550
- #: wpc-smart-wishlist.php:1140
551
- #: wpc-smart-wishlist.php:1624
552
  msgid "Continue shopping"
553
  msgstr ""
554
 
555
- #: wpc-smart-wishlist.php:1144
556
  msgid "Menu item label"
557
  msgstr ""
558
 
559
- #: wpc-smart-wishlist.php:1157
560
  msgid "Primary wishlist name"
561
  msgstr ""
562
 
563
- #: wpc-smart-wishlist.php:1166
564
- #: wpc-smart-wishlist.php:1171
565
  msgid "Manage wishlists"
566
  msgstr ""
567
 
568
- #: wpc-smart-wishlist.php:1175
569
  msgid "Set default"
570
  msgstr ""
571
 
572
- #: wpc-smart-wishlist.php:1180
573
  msgid "set default"
574
  msgstr ""
575
 
576
- #: wpc-smart-wishlist.php:1184
577
  msgid "Default"
578
  msgstr ""
579
 
580
- #: wpc-smart-wishlist.php:1189
581
  msgid "default"
582
  msgstr ""
583
 
584
- #: wpc-smart-wishlist.php:1193
585
  msgid "Delete"
586
  msgstr ""
587
 
588
- #: wpc-smart-wishlist.php:1198
589
  msgid "delete"
590
  msgstr ""
591
 
592
- #: wpc-smart-wishlist.php:1202
593
  msgid "Wishlist name placeholder"
594
  msgstr ""
595
 
596
- #: wpc-smart-wishlist.php:1207
597
  msgid "New Wishlist"
598
  msgstr ""
599
 
600
- #: wpc-smart-wishlist.php:1211
601
  msgid "Add new wishlist"
602
  msgstr ""
603
 
604
- #: wpc-smart-wishlist.php:1216
605
  msgid "Add New Wishlist"
606
  msgstr ""
607
 
608
- #: wpc-smart-wishlist.php:1220
609
  msgid "Message"
610
  msgstr ""
611
 
612
- #: wpc-smart-wishlist.php:1224
613
  msgid "Added to the wishlist"
614
  msgstr ""
615
 
616
- #: wpc-smart-wishlist.php:1233
617
  msgid "Already in the wishlist"
618
  msgstr ""
619
 
620
- #: wpc-smart-wishlist.php:1242
621
  msgid "Removed from wishlist"
622
  msgstr ""
623
 
624
- #: wpc-smart-wishlist.php:1251
625
  msgid "Empty wishlist confirm"
626
  msgstr ""
627
 
628
- #: wpc-smart-wishlist.php:1256
629
- #: wpc-smart-wishlist.php:1283
630
- #: wpc-smart-wishlist.php:1381
631
- #: wpc-smart-wishlist.php:1382
632
  msgid "This action cannot be undone. Are you sure?"
633
  msgstr ""
634
 
635
- #: wpc-smart-wishlist.php:1260
636
  msgid "Empty wishlist notice"
637
  msgstr ""
638
 
639
- #: wpc-smart-wishlist.php:1269
640
  msgid "Empty wishlist"
641
  msgstr ""
642
 
643
- #: wpc-smart-wishlist.php:1278
644
  msgid "Delete wishlist confirm"
645
  msgstr ""
646
 
647
- #: wpc-smart-wishlist.php:1287
648
  msgid "Product does not exist"
649
  msgstr ""
650
 
651
- #: wpc-smart-wishlist.php:1296
652
  msgid "Need to login"
653
  msgstr ""
654
 
655
- #: wpc-smart-wishlist.php:1305
656
  msgid "Copied wishlist link"
657
  msgstr ""
658
 
659
- #: wpc-smart-wishlist.php:1310
660
- #: wpc-smart-wishlist.php:1383
661
  msgid "Copied the wishlist link:"
662
  msgstr ""
663
 
664
- #: wpc-smart-wishlist.php:1314
665
  msgid "Have an error"
666
  msgstr ""
667
 
668
- #: wpc-smart-wishlist.php:1426
669
  msgid "Community support"
670
  msgstr ""
671
 
672
- #: wpc-smart-wishlist.php:1503
673
  msgid "In stock"
674
  msgstr ""
675
 
676
- #: wpc-smart-wishlist.php:1503
677
  msgid "Out of stock"
678
  msgstr ""
679
 
680
- #: wpc-smart-wishlist.php:1924
681
- #: wpc-smart-wishlist.php:1927
682
- #: wpc-smart-wishlist.php:1991
683
- #: wpc-smart-wishlist.php:1994
684
  msgid "%s product"
685
  msgid_plural "%s products"
686
  msgstr[0] ""
687
  msgstr[1] ""
688
 
689
- #: wpc-smart-wishlist.php:1926
690
- #: wpc-smart-wishlist.php:1993
691
  msgid "Guest"
692
  msgstr ""
693
 
694
- #: wpc-smart-wishlist.php:1941
695
- #: wpc-smart-wishlist.php:1970
696
  msgid "Edit"
697
  msgstr ""
698
 
699
- #: wpc-smart-wishlist.php:1941
700
  msgid "See in wishlist"
701
  msgstr ""
702
 
703
- #: wpc-smart-wishlist.php:1949
704
  msgid "Empty Wishlist"
705
  msgstr ""
2
  # This file is distributed under the same license as the WPC Smart Wishlist for WooCommerce plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WPC Smart Wishlist for WooCommerce 3.0.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/woo-smart-wishlist\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2022-05-20T19:14:01+00:00\n"
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.5.0\n"
15
  "X-Domain: woo-smart-wishlist\n"
34
  msgid "https://wpclever.net"
35
  msgstr ""
36
 
37
+ #: wpc-smart-wishlist.php:285
38
+ #: wpc-smart-wishlist.php:342
39
+ #: wpc-smart-wishlist.php:385
40
+ #: wpc-smart-wishlist.php:1304
41
  msgid "Please log in to use the wishlist!"
42
  msgstr ""
43
 
44
+ #: wpc-smart-wishlist.php:286
45
+ #: wpc-smart-wishlist.php:359
46
+ #: wpc-smart-wishlist.php:403
47
+ #: wpc-smart-wishlist.php:418
48
+ #: wpc-smart-wishlist.php:1277
49
+ #: wpc-smart-wishlist.php:1528
50
  msgid "There are no products on the wishlist!"
51
  msgstr ""
52
 
53
+ #: wpc-smart-wishlist.php:305
54
+ #: wpc-smart-wishlist.php:1232
55
  msgid "Added to the wishlist!"
56
  msgstr ""
57
 
58
+ #: wpc-smart-wishlist.php:308
59
+ #: wpc-smart-wishlist.php:1241
60
  msgid "Already in the wishlist!"
61
  msgstr ""
62
 
63
+ #: wpc-smart-wishlist.php:322
64
+ #: wpc-smart-wishlist.php:367
65
+ #: wpc-smart-wishlist.php:1322
66
  msgid "Have an error, please try again!"
67
  msgstr ""
68
 
69
+ #: wpc-smart-wishlist.php:356
70
+ #: wpc-smart-wishlist.php:1250
71
  msgid "Removed from wishlist!"
72
  msgstr ""
73
 
74
+ #: wpc-smart-wishlist.php:362
75
+ #: wpc-smart-wishlist.php:1295
76
  msgid "The product does not exist on the wishlist!"
77
  msgstr ""
78
 
79
+ #: wpc-smart-wishlist.php:402
80
+ #: wpc-smart-wishlist.php:1268
81
  msgid "All products were removed from your wishlist!"
82
  msgstr ""
83
 
84
+ #: wpc-smart-wishlist.php:417
85
+ #: wpc-smart-wishlist.php:442
86
  msgid "Please log in to use wishlist!"
87
  msgstr ""
88
 
89
+ #: wpc-smart-wishlist.php:494
90
+ #: wpc-smart-wishlist.php:1089
91
+ #: wpc-smart-wishlist.php:1389
92
  msgid "Browse wishlist"
93
  msgstr ""
94
 
95
+ #: wpc-smart-wishlist.php:496
96
+ #: wpc-smart-wishlist.php:1080
97
+ #: wpc-smart-wishlist.php:1388
98
  msgid "Add to wishlist"
99
  msgstr ""
100
 
101
+ #: wpc-smart-wishlist.php:529
102
+ #: wpc-smart-wishlist.php:985
103
  msgid "Facebook"
104
  msgstr ""
105
 
106
+ #: wpc-smart-wishlist.php:530
107
+ #: wpc-smart-wishlist.php:988
108
  msgid "Twitter"
109
  msgstr ""
110
 
111
+ #: wpc-smart-wishlist.php:531
112
+ #: wpc-smart-wishlist.php:991
113
  msgid "Pinterest"
114
  msgstr ""
115
 
116
+ #: wpc-smart-wishlist.php:532
117
+ #: wpc-smart-wishlist.php:994
118
  msgid "Mail"
119
  msgstr ""
120
 
121
+ #: wpc-smart-wishlist.php:542
122
  msgid "Share on:"
123
  msgstr ""
124
 
125
+ #: wpc-smart-wishlist.php:553
126
  msgid "Wishlist link:"
127
  msgstr ""
128
 
129
+ #: wpc-smart-wishlist.php:555
130
  msgid "Copy"
131
  msgstr ""
132
 
133
+ #: wpc-smart-wishlist.php:580
134
  msgid "Thank you for using our plugin! If you are satisfied, please reward it a full five-star %s rating."
135
  msgstr ""
136
 
137
+ #: wpc-smart-wishlist.php:583
138
  msgid "Reviews"
139
  msgstr ""
140
 
141
+ #: wpc-smart-wishlist.php:585
142
  msgid "Changelog"
143
  msgstr ""
144
 
145
+ #: wpc-smart-wishlist.php:587
146
  msgid "Discussion"
147
  msgstr ""
148
 
149
+ #: wpc-smart-wishlist.php:594
150
+ #: wpc-smart-wishlist.php:1412
151
  msgid "Settings"
152
  msgstr ""
153
 
154
+ #: wpc-smart-wishlist.php:598
155
+ #: wpc-smart-wishlist.php:1069
156
  msgid "Localization"
157
  msgstr ""
158
 
159
+ #: wpc-smart-wishlist.php:603
160
+ #: wpc-smart-wishlist.php:1413
161
  msgid "Premium Version"
162
  msgstr ""
163
 
164
+ #: wpc-smart-wishlist.php:606
165
  msgid "Essential Kit"
166
  msgstr ""
167
 
168
+ #: wpc-smart-wishlist.php:621
169
  msgid "General"
170
  msgstr ""
171
 
172
+ #: wpc-smart-wishlist.php:625
173
  msgid "Disable the wishlist for unauthenticated users"
174
  msgstr ""
175
 
176
+ #: wpc-smart-wishlist.php:629
177
+ #: wpc-smart-wishlist.php:642
 
 
 
 
 
 
 
 
 
 
 
 
178
  #: wpc-smart-wishlist.php:666
179
  #: wpc-smart-wishlist.php:843
 
180
  #: wpc-smart-wishlist.php:889
181
  #: wpc-smart-wishlist.php:908
182
  #: wpc-smart-wishlist.php:951
183
  #: wpc-smart-wishlist.php:965
184
  #: wpc-smart-wishlist.php:1004
185
+ msgid "Yes"
186
+ msgstr ""
187
+
188
+ #: wpc-smart-wishlist.php:632
189
+ #: wpc-smart-wishlist.php:645
190
+ #: wpc-smart-wishlist.php:669
191
+ #: wpc-smart-wishlist.php:846
192
+ #: wpc-smart-wishlist.php:876
193
+ #: wpc-smart-wishlist.php:892
194
+ #: wpc-smart-wishlist.php:911
195
+ #: wpc-smart-wishlist.php:954
196
+ #: wpc-smart-wishlist.php:968
197
+ #: wpc-smart-wishlist.php:1007
198
  msgid "No"
199
  msgstr ""
200
 
201
+ #: wpc-smart-wishlist.php:638
202
  msgid "Auto remove"
203
  msgstr ""
204
 
205
+ #: wpc-smart-wishlist.php:648
206
  msgid "Auto remove product from the wishlist after adding to the cart."
207
  msgstr ""
208
 
209
+ #: wpc-smart-wishlist.php:653
210
+ #: wpc-smart-wishlist.php:1156
211
  msgid "Multiple Wishlist"
212
  msgstr ""
213
 
214
+ #: wpc-smart-wishlist.php:662
215
  msgid "Enable"
216
  msgstr ""
217
 
218
+ #: wpc-smart-wishlist.php:672
219
  msgid "Enable/disable multiple wishlist."
220
  msgstr ""
221
 
222
+ #: wpc-smart-wishlist.php:676
223
  msgid "Maximum wishlists per user"
224
  msgstr ""
225
 
226
+ #: wpc-smart-wishlist.php:684
227
+ #: wpc-smart-wishlist.php:695
228
  msgid "Button"
229
  msgstr ""
230
 
231
+ #: wpc-smart-wishlist.php:687
232
  msgid "Settings for \"Add to wishlist\" button."
233
  msgstr ""
234
 
235
+ #: wpc-smart-wishlist.php:691
236
  msgid "Type"
237
  msgstr ""
238
 
239
+ #: wpc-smart-wishlist.php:698
240
  msgid "Link"
241
  msgstr ""
242
 
243
+ #: wpc-smart-wishlist.php:704
244
+ #: wpc-smart-wishlist.php:1040
245
  msgid "Action"
246
  msgstr ""
247
 
248
+ #: wpc-smart-wishlist.php:708
249
  msgid "Show message"
250
  msgstr ""
251
 
252
+ #: wpc-smart-wishlist.php:711
253
  msgid "Show product list"
254
  msgstr ""
255
 
256
+ #: wpc-smart-wishlist.php:714
257
  msgid "Add to wishlist solely"
258
  msgstr ""
259
 
260
+ #: wpc-smart-wishlist.php:717
261
  msgid "Action triggered by clicking on the wishlist button."
262
  msgstr ""
263
 
264
+ #: wpc-smart-wishlist.php:721
265
  msgid "Action (added)"
266
  msgstr ""
267
 
268
+ #: wpc-smart-wishlist.php:725
269
  msgid "Open wishlist popup"
270
  msgstr ""
271
 
272
+ #: wpc-smart-wishlist.php:728
273
+ #: wpc-smart-wishlist.php:1129
274
+ #: wpc-smart-wishlist.php:1134
275
+ #: wpc-smart-wishlist.php:1625
276
  msgid "Open wishlist page"
277
  msgstr ""
278
 
279
+ #: wpc-smart-wishlist.php:731
280
  msgid "Action triggered by clicking on the wishlist button after adding an item to the wishlist."
281
  msgstr ""
282
 
283
+ #: wpc-smart-wishlist.php:735
284
  msgid "Extra class (optional)"
285
  msgstr ""
286
 
287
+ #: wpc-smart-wishlist.php:739
288
  msgid "Add extra class for action button/link, split by one space."
289
  msgstr ""
290
 
291
+ #: wpc-smart-wishlist.php:743
292
  msgid "Position on archive page"
293
  msgstr ""
294
 
295
+ #: wpc-smart-wishlist.php:748
296
+ #: wpc-smart-wishlist.php:775
297
  msgid "Under title"
298
  msgstr ""
299
 
300
+ #: wpc-smart-wishlist.php:749
301
+ #: wpc-smart-wishlist.php:776
302
  msgid "Under rating"
303
  msgstr ""
304
 
305
+ #: wpc-smart-wishlist.php:750
306
  msgid "Under price"
307
  msgstr ""
308
 
309
+ #: wpc-smart-wishlist.php:751
310
+ #: wpc-smart-wishlist.php:778
311
  msgid "Above add to cart button"
312
  msgstr ""
313
 
314
+ #: wpc-smart-wishlist.php:752
315
+ #: wpc-smart-wishlist.php:779
316
  msgid "Under add to cart button"
317
  msgstr ""
318
 
319
+ #: wpc-smart-wishlist.php:753
320
+ #: wpc-smart-wishlist.php:782
321
  msgid "None (hide it)"
322
  msgstr ""
323
 
324
+ #: wpc-smart-wishlist.php:770
325
  msgid "Position on single page"
326
  msgstr ""
327
 
328
+ #: wpc-smart-wishlist.php:777
329
  msgid "Under excerpt"
330
  msgstr ""
331
 
332
+ #: wpc-smart-wishlist.php:780
333
  msgid "Under meta"
334
  msgstr ""
335
 
336
+ #: wpc-smart-wishlist.php:781
337
  msgid "Under sharing"
338
  msgstr ""
339
 
340
+ #: wpc-smart-wishlist.php:799
341
  msgid "Shortcode"
342
  msgstr ""
343
 
344
+ #: wpc-smart-wishlist.php:802
345
  msgid "You can add a button manually by using the shortcode %s, eg. %s for the product whose ID is 99."
346
  msgstr ""
347
 
348
+ #: wpc-smart-wishlist.php:807
349
  msgid "Categories"
350
  msgstr ""
351
 
352
+ #: wpc-smart-wishlist.php:822
353
  msgid "All categories"
354
  msgstr ""
355
 
356
+ #: wpc-smart-wishlist.php:827
357
  msgid "Only show the wishlist button for products in selected categories."
358
  msgstr ""
359
 
360
+ #: wpc-smart-wishlist.php:832
361
  msgid "Popup"
362
  msgstr ""
363
 
364
+ #: wpc-smart-wishlist.php:835
365
  msgid "Settings for the wishlist popup."
366
  msgstr ""
367
 
368
+ #: wpc-smart-wishlist.php:839
369
  msgid "Use perfect-scrollbar"
370
  msgstr ""
371
 
372
+ #: wpc-smart-wishlist.php:849
373
  msgid "Read more about %s"
374
  msgstr ""
375
 
376
+ #: wpc-smart-wishlist.php:853
377
  msgid "Color"
378
  msgstr ""
379
 
380
+ #: wpc-smart-wishlist.php:859
381
  msgid "Choose the color, default %s"
382
  msgstr ""
383
 
384
+ #: wpc-smart-wishlist.php:863
385
  msgid "Link to individual product"
386
  msgstr ""
387
 
388
+ #: wpc-smart-wishlist.php:867
389
  msgid "Yes, open in the same tab"
390
  msgstr ""
391
 
392
+ #: wpc-smart-wishlist.php:870
393
  msgid "Yes, open in the new tab"
394
  msgstr ""
395
 
396
+ #: wpc-smart-wishlist.php:873
397
  msgid "Yes, open quick view popup"
398
  msgstr ""
399
 
400
+ #: wpc-smart-wishlist.php:885
401
  msgid "Show note"
402
  msgstr ""
403
 
404
+ #: wpc-smart-wishlist.php:895
405
  msgid "Show note on each product for all visitors. Only wishlist owner can add/edit these notes."
406
  msgstr ""
407
 
408
+ #: wpc-smart-wishlist.php:904
409
+ #: wpc-smart-wishlist.php:1102
410
  msgid "Empty wishlist button"
411
  msgstr ""
412
 
413
+ #: wpc-smart-wishlist.php:914
414
  msgid "Show empty wishlist button on the popup?"
415
  msgstr ""
416
 
417
+ #: wpc-smart-wishlist.php:918
418
  msgid "Continue shopping link"
419
  msgstr ""
420
 
421
+ #: wpc-smart-wishlist.php:923
422
  msgid "By default, the wishlist popup will only be closed when customers click on the \"Continue Shopping\" button."
423
  msgstr ""
424
 
425
+ #: wpc-smart-wishlist.php:928
426
  msgid "Page"
427
  msgstr ""
428
 
429
+ #: wpc-smart-wishlist.php:931
430
  msgid "Settings for wishlist page."
431
  msgstr ""
432
 
433
+ #: wpc-smart-wishlist.php:935
434
  msgid "Wishlist page"
435
  msgstr ""
436
 
437
+ #: wpc-smart-wishlist.php:940
438
  msgid "Choose a page"
439
  msgstr ""
440
 
441
+ #: wpc-smart-wishlist.php:943
442
  msgid "Add shortcode %s to display the wishlist on a page."
443
  msgstr ""
444
 
445
+ #: wpc-smart-wishlist.php:947
446
  msgid "Share buttons"
447
  msgstr ""
448
 
449
+ #: wpc-smart-wishlist.php:957
450
  msgid "Enable share buttons on the wishlist page?"
451
  msgstr ""
452
 
453
+ #: wpc-smart-wishlist.php:961
454
  msgid "Use font icon"
455
  msgstr ""
456
 
457
+ #: wpc-smart-wishlist.php:974
458
  msgid "Social links"
459
  msgstr ""
460
 
461
+ #: wpc-smart-wishlist.php:1000
462
  msgid "Copy link"
463
  msgstr ""
464
 
465
+ #: wpc-smart-wishlist.php:1010
466
  msgid "Enable copy wishlist link to share?"
467
  msgstr ""
468
 
469
+ #: wpc-smart-wishlist.php:1015
470
  msgid "Menu"
471
  msgstr ""
472
 
473
+ #: wpc-smart-wishlist.php:1018
474
  msgid "Settings for the wishlist menu item."
475
  msgstr ""
476
 
477
+ #: wpc-smart-wishlist.php:1022
478
  msgid "Menu(s)"
479
  msgstr ""
480
 
481
+ #: wpc-smart-wishlist.php:1036
482
  msgid "Choose the menu(s) you want to add the \"wishlist menu\" at the end."
483
  msgstr ""
484
 
485
+ #: wpc-smart-wishlist.php:1044
486
  msgid "Open page"
487
  msgstr ""
488
 
489
+ #: wpc-smart-wishlist.php:1047
490
  msgid "Open popup"
491
  msgstr ""
492
 
493
+ #: wpc-smart-wishlist.php:1050
494
  msgid "Action when clicking on the \"wishlist menu\"."
495
  msgstr ""
496
 
497
+ #: wpc-smart-wishlist.php:1056
498
+ #: wpc-smart-wishlist.php:1328
499
  msgid "Update Options"
500
  msgstr ""
501
 
502
+ #: wpc-smart-wishlist.php:1071
503
  msgid "Leave blank to use the default text and its equivalent translation in multiple languages."
504
  msgstr ""
505
 
506
+ #: wpc-smart-wishlist.php:1075
507
  msgid "Button text"
508
  msgstr ""
509
 
510
+ #: wpc-smart-wishlist.php:1084
511
  msgid "Button text (added)"
512
  msgstr ""
513
 
514
+ #: wpc-smart-wishlist.php:1093
515
  msgid "Wishlist popup heading"
516
  msgstr ""
517
 
518
+ #: wpc-smart-wishlist.php:1098
519
+ #: wpc-smart-wishlist.php:1152
520
+ #: wpc-smart-wishlist.php:1165
521
+ #: wpc-smart-wishlist.php:1387
522
+ #: wpc-smart-wishlist.php:1569
523
+ #: wpc-smart-wishlist.php:1595
524
+ #: wpc-smart-wishlist.php:1796
525
+ #: wpc-smart-wishlist.php:1877
526
+ #: wpc-smart-wishlist.php:1884
527
+ #: wpc-smart-wishlist.php:2077
528
  msgid "Wishlist"
529
  msgstr ""
530
 
531
+ #: wpc-smart-wishlist.php:1107
532
+ #: wpc-smart-wishlist.php:1608
533
  msgid "remove all"
534
  msgstr ""
535
 
536
+ #: wpc-smart-wishlist.php:1111
537
+ #: wpc-smart-wishlist.php:1116
538
  msgid "Add note"
539
  msgstr ""
540
 
541
+ #: wpc-smart-wishlist.php:1120
542
  msgid "Save note"
543
  msgstr ""
544
 
545
+ #: wpc-smart-wishlist.php:1125
546
  msgid "Save"
547
  msgstr ""
548
 
549
+ #: wpc-smart-wishlist.php:1138
550
+ #: wpc-smart-wishlist.php:1143
551
+ #: wpc-smart-wishlist.php:1629
552
  msgid "Continue shopping"
553
  msgstr ""
554
 
555
+ #: wpc-smart-wishlist.php:1147
556
  msgid "Menu item label"
557
  msgstr ""
558
 
559
+ #: wpc-smart-wishlist.php:1160
560
  msgid "Primary wishlist name"
561
  msgstr ""
562
 
563
+ #: wpc-smart-wishlist.php:1169
564
+ #: wpc-smart-wishlist.php:1174
565
  msgid "Manage wishlists"
566
  msgstr ""
567
 
568
+ #: wpc-smart-wishlist.php:1178
569
  msgid "Set default"
570
  msgstr ""
571
 
572
+ #: wpc-smart-wishlist.php:1183
573
  msgid "set default"
574
  msgstr ""
575
 
576
+ #: wpc-smart-wishlist.php:1187
577
  msgid "Default"
578
  msgstr ""
579
 
580
+ #: wpc-smart-wishlist.php:1192
581
  msgid "default"
582
  msgstr ""
583
 
584
+ #: wpc-smart-wishlist.php:1196
585
  msgid "Delete"
586
  msgstr ""
587
 
588
+ #: wpc-smart-wishlist.php:1201
589
  msgid "delete"
590
  msgstr ""
591
 
592
+ #: wpc-smart-wishlist.php:1205
593
  msgid "Wishlist name placeholder"
594
  msgstr ""
595
 
596
+ #: wpc-smart-wishlist.php:1210
597
  msgid "New Wishlist"
598
  msgstr ""
599
 
600
+ #: wpc-smart-wishlist.php:1214
601
  msgid "Add new wishlist"
602
  msgstr ""
603
 
604
+ #: wpc-smart-wishlist.php:1219
605
  msgid "Add New Wishlist"
606
  msgstr ""
607
 
608
+ #: wpc-smart-wishlist.php:1223
609
  msgid "Message"
610
  msgstr ""
611
 
612
+ #: wpc-smart-wishlist.php:1227
613
  msgid "Added to the wishlist"
614
  msgstr ""
615
 
616
+ #: wpc-smart-wishlist.php:1236
617
  msgid "Already in the wishlist"
618
  msgstr ""
619
 
620
+ #: wpc-smart-wishlist.php:1245
621
  msgid "Removed from wishlist"
622
  msgstr ""
623
 
624
+ #: wpc-smart-wishlist.php:1254
625
  msgid "Empty wishlist confirm"
626
  msgstr ""
627
 
628
+ #: wpc-smart-wishlist.php:1259
629
+ #: wpc-smart-wishlist.php:1286
630
+ #: wpc-smart-wishlist.php:1384
631
+ #: wpc-smart-wishlist.php:1385
632
  msgid "This action cannot be undone. Are you sure?"
633
  msgstr ""
634
 
635
+ #: wpc-smart-wishlist.php:1263
636
  msgid "Empty wishlist notice"
637
  msgstr ""
638
 
639
+ #: wpc-smart-wishlist.php:1272
640
  msgid "Empty wishlist"
641
  msgstr ""
642
 
643
+ #: wpc-smart-wishlist.php:1281
644
  msgid "Delete wishlist confirm"
645
  msgstr ""
646
 
647
+ #: wpc-smart-wishlist.php:1290
648
  msgid "Product does not exist"
649
  msgstr ""
650
 
651
+ #: wpc-smart-wishlist.php:1299
652
  msgid "Need to login"
653
  msgstr ""
654
 
655
+ #: wpc-smart-wishlist.php:1308
656
  msgid "Copied wishlist link"
657
  msgstr ""
658
 
659
+ #: wpc-smart-wishlist.php:1313
660
+ #: wpc-smart-wishlist.php:1386
661
  msgid "Copied the wishlist link:"
662
  msgstr ""
663
 
664
+ #: wpc-smart-wishlist.php:1317
665
  msgid "Have an error"
666
  msgstr ""
667
 
668
+ #: wpc-smart-wishlist.php:1429
669
  msgid "Community support"
670
  msgstr ""
671
 
672
+ #: wpc-smart-wishlist.php:1509
673
  msgid "In stock"
674
  msgstr ""
675
 
676
+ #: wpc-smart-wishlist.php:1509
677
  msgid "Out of stock"
678
  msgstr ""
679
 
680
+ #: wpc-smart-wishlist.php:1930
681
+ #: wpc-smart-wishlist.php:1933
682
+ #: wpc-smart-wishlist.php:1997
683
+ #: wpc-smart-wishlist.php:2000
684
  msgid "%s product"
685
  msgid_plural "%s products"
686
  msgstr[0] ""
687
  msgstr[1] ""
688
 
689
+ #: wpc-smart-wishlist.php:1932
690
+ #: wpc-smart-wishlist.php:1999
691
  msgid "Guest"
692
  msgstr ""
693
 
694
+ #: wpc-smart-wishlist.php:1947
695
+ #: wpc-smart-wishlist.php:1976
696
  msgid "Edit"
697
  msgstr ""
698
 
699
+ #: wpc-smart-wishlist.php:1947
700
  msgid "See in wishlist"
701
  msgstr ""
702
 
703
+ #: wpc-smart-wishlist.php:1955
704
  msgid "Empty Wishlist"
705
  msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wpclever.net
4
  Tags: woocommerce, woo, wpc, smart, wishlist, wish list
5
  Requires at least: 4.0
6
  Tested up to: 5.9
7
- Stable tag: 3.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -106,6 +106,9 @@ Example:
106
 
107
  == Changelog ==
108
 
 
 
 
109
  = 3.0.2 =
110
  * Fixed: Minor JS/CSS issues
111
 
4
  Tags: woocommerce, woo, wpc, smart, wishlist, wish list
5
  Requires at least: 4.0
6
  Tested up to: 5.9
7
+ Stable tag: 3.0.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
106
 
107
  == Changelog ==
108
 
109
+ = 3.0.3 =
110
+ * Fixed: Security issues
111
+
112
  = 3.0.2 =
113
  * Fixed: Minor JS/CSS issues
114
 
wpc-smart-wishlist.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WPC Smart Wishlist for WooCommerce
4
  Plugin URI: https://wpclever.net/
5
  Description: WPC Smart Wishlist is a simple but powerful tool that can help your customer save products for buy later.
6
- Version: 3.0.2
7
  Author: WPClever
8
  Author URI: https://wpclever.net
9
  Text Domain: woo-smart-wishlist
@@ -16,8 +16,10 @@ WC tested up to: 6.5
16
 
17
  defined( 'ABSPATH' ) || exit;
18
 
19
- ! defined( 'WOOSW_VERSION' ) && define( 'WOOSW_VERSION', '3.0.2' );
 
20
  ! defined( 'WOOSW_URI' ) && define( 'WOOSW_URI', plugin_dir_url( __FILE__ ) );
 
21
  ! defined( 'WOOSW_REVIEWS' ) && define( 'WOOSW_REVIEWS', 'https://wordpress.org/support/plugin/woo-smart-wishlist/reviews/?filter=5' );
22
  ! defined( 'WOOSW_CHANGELOG' ) && define( 'WOOSW_CHANGELOG', 'https://wordpress.org/plugins/woo-smart-wishlist/#developers' );
23
  ! defined( 'WOOSW_DISCUSSION' ) && define( 'WOOSW_DISCUSSION', 'https://wordpress.org/support/plugin/woo-smart-wishlist' );
@@ -125,6 +127,9 @@ if ( ! function_exists( 'woosw_init' ) ) {
125
 
126
  // dropdown multiple
127
  add_filter( 'wp_dropdown_cats', array( $this, 'dropdown_cats_multiple' ), 10, 2 );
 
 
 
128
  }
129
 
130
  function query_vars( $vars ) {
@@ -138,7 +143,7 @@ if ( ! function_exists( 'woosw_init' ) ) {
138
  self::$localization = (array) get_option( 'woosw_localization' );
139
 
140
  // added products
141
- $key = isset( $_COOKIE['woosw_key'] ) ? $_COOKIE['woosw_key'] : '#';
142
 
143
  if ( get_option( 'woosw_list_' . $key ) ) {
144
  self::$added_products = get_option( 'woosw_list_' . $key );
@@ -215,7 +220,7 @@ if ( ! function_exists( 'woosw_init' ) ) {
215
  $str = $default;
216
  }
217
 
218
- return apply_filters( 'woosw_localization_' . $key, $str );
219
  }
220
 
221
  function add_to_cart( $cart_item_key, $product_id ) {
@@ -242,8 +247,8 @@ if ( ! function_exists( 'woosw_init' ) ) {
242
  }
243
 
244
  $key = self::get_key();
245
- $product_id = absint( isset( $_REQUEST['add_to_wishlist'] ) ? $_REQUEST['add_to_wishlist'] : 0 );
246
- $product_id = absint( isset( $_REQUEST['add-to-wishlist'] ) ? $_REQUEST['add-to-wishlist'] : $product_id );
247
 
248
  if ( $product_id ) {
249
  if ( $key !== '#' && $key !== 'WOOSW' ) {
@@ -274,7 +279,7 @@ if ( ! function_exists( 'woosw_init' ) ) {
274
  $return = array( 'status' => 0 );
275
  $key = self::get_key();
276
 
277
- if ( ( $product_id = absint( $_POST['product_id'] ) ) > 0 ) {
278
  if ( $key === '#' ) {
279
  $return['status'] = 0;
280
  $return['notice'] = self::localization( 'login_message', esc_html__( 'Please log in to use the wishlist!', 'woo-smart-wishlist' ) );
@@ -332,7 +337,7 @@ if ( ! function_exists( 'woosw_init' ) ) {
332
  $key = self::get_key();
333
  }
334
 
335
- if ( ( $product_id = absint( $_POST['product_id'] ) ) > 0 ) {
336
  if ( $key === '#' ) {
337
  $return['notice'] = self::localization( 'login_message', esc_html__( 'Please log in to use the wishlist!', 'woo-smart-wishlist' ) );
338
  } else {
@@ -509,7 +514,7 @@ if ( ! function_exists( 'woosw_init' ) ) {
509
  if ( get_query_var( 'woosw_id' ) ) {
510
  $key = get_query_var( 'woosw_id' );
511
  } elseif ( isset( $_REQUEST['wid'] ) && ! empty( $_REQUEST['wid'] ) ) {
512
- $key = $_REQUEST['wid'];
513
  } else {
514
  $key = self::get_key();
515
  }
@@ -604,7 +609,7 @@ if ( ! function_exists( 'woosw_init' ) ) {
604
  </div>
605
  <div class="wpclever_settings_page_content">
606
  <?php if ( $active_tab === 'settings' ) {
607
- if ( isset( $_REQUEST['settings-updated'] ) && $_REQUEST['settings-updated'] === 'true' ) {
608
  flush_rewrite_rules();
609
  }
610
  ?>
@@ -648,11 +653,9 @@ if ( ! function_exists( 'woosw_init' ) ) {
648
  <?php esc_html_e( 'Multiple Wishlist', 'woo-smart-wishlist' ); ?>
649
  </th>
650
  <td>
651
- <span class="description" style="color: #c9356e">
652
- This feature is only available on the Premium Version. Click <a
653
  href="https://wpclever.net/downloads/smart-wishlist?utm_source=pro&utm_medium=woosw&utm_campaign=wporg"
654
- target="_blank">here</a> to buy, just $29.
655
- </span>
656
  </td>
657
  </tr>
658
  <tr>
@@ -1433,9 +1436,10 @@ if ( ! function_exists( 'woosw_init' ) ) {
1433
  }
1434
 
1435
  function get_items( $key ) {
 
 
1436
  $products = get_option( 'woosw_list_' . $key );
1437
  $link = get_option( 'woosw_link', 'yes' );
1438
- ob_start();
1439
 
1440
  do_action( 'woosw_before_items', $key, $products );
1441
 
@@ -1463,7 +1467,7 @@ if ( ! function_exists( 'woosw_init' ) ) {
1463
  } else {
1464
  $product_note = '';
1465
  } ?>
1466
- <tr class="woosw-item woosw-item-<?php echo esc_attr( $product_id ); ?>"
1467
  data-id="<?php echo esc_attr( $product_id ); ?>">
1468
 
1469
  <?php do_action( 'woosw_wishlist_item_before', $product, $product_id, $key ); ?>
@@ -1473,34 +1477,36 @@ if ( ! function_exists( 'woosw_init' ) ) {
1473
  <?php } ?>
1474
 
1475
  <td class="woosw-item--image">
1476
- <?php if ( $link !== 'no' ) { ?>
1477
- <a <?php echo ( $link === 'yes_popup' ? 'class="woosq-link" data-id="' . $product_id . '" data-context="woosw"' : '' ) . ' href="' . $product->get_permalink() . '" ' . ( $link === 'yes_blank' ? 'target="_blank"' : '' ); ?>>
1478
- <?php echo apply_filters( 'woosw_item_image', $product->get_image() ); ?>
1479
- </a>
1480
- <?php } else {
1481
- echo apply_filters( 'woosw_item_image', $product->get_image() );
 
1482
  }
1483
 
1484
- do_action( 'woosw_wishlist_item_image', $product, $product_id, $key ); ?>
 
1485
  </td>
1486
 
1487
  <td class="woosw-item--info">
1488
  <?php if ( $link !== 'no' ) {
1489
- echo apply_filters( 'woosw_item_name', '<div class="woosw-item--name"><a ' . ( $link === 'yes_popup' ? 'class="woosq-link" data-id="' . $product_id . '" data-context="woosw"' : '' ) . ' href="' . $product->get_permalink() . '" ' . ( $link === 'yes_blank' ? 'target="_blank"' : '' ) . '>' . $product->get_name() . '</a></div>', $product );
1490
  } else {
1491
- echo apply_filters( 'woosw_item_name', '<div class="woosw-item--name">' . $product->get_name() . '</div>', $product );
1492
  }
1493
 
1494
- echo apply_filters( 'woosw_item_price', '<div class="woosw-item--price">' . $product->get_price_html() . '</div>', $product );
1495
 
1496
- echo apply_filters( 'woosw_item_time', '<div class="woosw-item--time">' . $product_time . '</div>', $product );
1497
 
1498
  do_action( 'woosw_wishlist_item_info', $product, $product_id, $key ); ?>
1499
  </td>
1500
 
1501
  <td class="woosw-item--actions">
1502
  <div class="woosw-item--stock">
1503
- <?php echo( $product->is_in_stock() ? esc_html__( 'In stock', 'woo-smart-wishlist' ) : esc_html__( 'Out of stock', 'woo-smart-wishlist' ) ); ?>
1504
  </div>
1505
 
1506
  <div class="woosw-item--add">
@@ -1525,9 +1531,7 @@ if ( ! function_exists( 'woosw_init' ) ) {
1525
 
1526
  do_action( 'woosw_after_items', $key, $products );
1527
 
1528
- $items_html = ob_get_clean();
1529
-
1530
- return apply_filters( 'woosw_wishlist_items', $items_html, $key, $products );
1531
  }
1532
 
1533
  function nav_menu_items( $items, $args ) {
@@ -1562,7 +1566,7 @@ if ( ! function_exists( 'woosw_init' ) ) {
1562
  }
1563
 
1564
  if ( $selected ) {
1565
- $menu_item = '<li class="' . apply_filters( 'woosw_menu_item_class', 'menu-item woosw-menu-item menu-item-type-woosw' ) . '"><a href="' . self::get_url() . '"><span class="woosw-menu-item-inner" data-count="' . self::get_count() . '">' . apply_filters( 'woosw_menu_item_label', self::localization( 'menu_label', esc_html__( 'Wishlist', 'woo-smart-wishlist' ) ) ) . '</span></a></li>';
1566
  $items .= apply_filters( 'woosw_menu_item', $menu_item );
1567
  }
1568
 
@@ -1603,13 +1607,14 @@ if ( ! function_exists( 'woosw_init' ) ) {
1603
  if ( get_option( 'woosw_empty_button', 'no' ) === 'yes' ) {
1604
  echo '<span class="woosw-empty"' . ( $count ? '' : ' style="display:none"' ) . '>' . self::localization( 'empty_button', esc_html__( 'remove all', 'woo-smart-wishlist' ) ) . '</span>';
1605
  }
 
1606
  echo '</span>';
1607
  ?>
1608
  <span class="woosw-popup-close"></span>
1609
  </div>
1610
  <div class="woosw-popup-content-mid">
1611
  <?php if ( ! empty( $message ) ) {
1612
- echo '<div class="woosw-popup-content-mid-massage">' . $message . '</div>';
1613
  } else {
1614
  echo self::get_items( $key );
1615
  } ?>
@@ -1686,7 +1691,7 @@ if ( ! function_exists( 'woosw_init' ) ) {
1686
  return true;
1687
  }
1688
  } else {
1689
- if ( isset( $_COOKIE['woosw_key'] ) && ( $_COOKIE['woosw_key'] === $key ) ) {
1690
  return true;
1691
  }
1692
  }
@@ -1744,7 +1749,7 @@ if ( ! function_exists( 'woosw_init' ) ) {
1744
  }
1745
 
1746
  if ( isset( $_COOKIE['woosw_key'] ) ) {
1747
- return esc_attr( $_COOKIE['woosw_key'] );
1748
  }
1749
 
1750
  return 'WOOSW';
@@ -1770,7 +1775,7 @@ if ( ! function_exists( 'woosw_init' ) ) {
1770
  }
1771
  }
1772
 
1773
- return apply_filters( 'woosw_wishlist_url', $url, $key );
1774
  }
1775
 
1776
  public static function get_count( $key = null ) {
@@ -1784,7 +1789,7 @@ if ( ! function_exists( 'woosw_init' ) ) {
1784
  $count = 0;
1785
  }
1786
 
1787
- return apply_filters( 'woosw_wishlist_count', $count, $key );
1788
  }
1789
 
1790
  function product_columns( $columns ) {
@@ -1848,7 +1853,7 @@ if ( ! function_exists( 'woosw_init' ) ) {
1848
  $httponly = apply_filters( 'woosw_cookie_httponly', true );
1849
 
1850
  if ( isset( $_COOKIE['woosw_key'] ) && ! empty( $_COOKIE['woosw_key'] ) ) {
1851
- wc_setcookie( 'woosw_key_ori', esc_attr( $_COOKIE['woosw_key'] ), time() + 604800, $secure, $httponly );
1852
  }
1853
 
1854
  wc_setcookie( 'woosw_key', $key, time() + 604800, $secure, $httponly );
@@ -1860,7 +1865,7 @@ if ( ! function_exists( 'woosw_init' ) ) {
1860
  $secure = apply_filters( 'woosw_cookie_secure', wc_site_is_https() && is_ssl() );
1861
  $httponly = apply_filters( 'woosw_cookie_httponly', true );
1862
 
1863
- wc_setcookie( 'woosw_key', esc_attr( $_COOKIE['woosw_key_ori'] ), time() + 604800, $secure, $httponly );
1864
  } else {
1865
  unset( $_COOKIE['woosw_key_ori'] );
1866
  unset( $_COOKIE['woosw_key'] );
@@ -1902,15 +1907,16 @@ if ( ! function_exists( 'woosw_init' ) ) {
1902
  $wishlist_html = '';
1903
 
1904
  if ( isset( $_POST['key'] ) && $_POST['key'] != '' ) {
1905
- $key = esc_attr( $_POST['key'] );
 
 
1906
  $products = get_option( 'woosw_list_' . $key, true );
1907
  $count = count( $products );
1908
- ob_start();
1909
 
1910
  if ( count( $products ) > 0 ) {
1911
  echo '<div class="woosw-quickview-items">';
1912
 
1913
- $user = $wpdb->get_results( 'SELECT user_id FROM `' . $wpdb->prefix . 'usermeta` WHERE `meta_key` = "woosw_key" AND `meta_value` = "' . esc_attr( $key ) . '" LIMIT 1', OBJECT );
1914
 
1915
  echo '<div class="woosw-quickview-item">';
1916
  echo '<div class="woosw-quickview-item-image"><a href="' . self::get_url( $key, true ) . '" target="_blank">#' . $key . '</a></div>';
@@ -1951,10 +1957,10 @@ if ( ! function_exists( 'woosw_init' ) ) {
1951
 
1952
  $wishlist_html = ob_get_clean();
1953
  } elseif ( isset( $_POST['pid'] ) ) {
1954
- $pid = absint( $_POST['pid'] );
1955
  ob_start();
1956
 
1957
- $keys = $wpdb->get_results( 'SELECT option_name FROM `' . $wpdb->prefix . 'options` WHERE `option_name` LIKE "%woosw_list_%" AND `option_value` LIKE "%i:' . esc_attr( $pid ) . ';%"', OBJECT );
 
1958
  $count = count( $keys );
1959
 
1960
  if ( $count > 0 ) {
@@ -1976,7 +1982,7 @@ if ( ! function_exists( 'woosw_init' ) ) {
1976
  $products = get_option( $item->option_name );
1977
  $count = count( $products );
1978
  $key = str_replace( 'woosw_list_', '', $item->option_name );
1979
- $user = $wpdb->get_results( 'SELECT user_id FROM `' . $wpdb->prefix . 'usermeta` WHERE `meta_key` = "woosw_key" AND `meta_value` = "' . esc_attr( $key ) . '" LIMIT 1', OBJECT );
1980
 
1981
  echo '<div class="woosw-quickview-item">';
1982
  echo '<div class="woosw-quickview-item-image"><a href="' . self::get_url( $key, true ) . '" target="_blank">#' . $key . '</a></div>';
@@ -2020,6 +2026,34 @@ if ( ! function_exists( 'woosw_init' ) ) {
2020
 
2021
  return $output;
2022
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2023
  }
2024
 
2025
  new WPCleverWoosw();
3
  Plugin Name: WPC Smart Wishlist for WooCommerce
4
  Plugin URI: https://wpclever.net/
5
  Description: WPC Smart Wishlist is a simple but powerful tool that can help your customer save products for buy later.
6
+ Version: 3.0.3
7
  Author: WPClever
8
  Author URI: https://wpclever.net
9
  Text Domain: woo-smart-wishlist
16
 
17
  defined( 'ABSPATH' ) || exit;
18
 
19
+ ! defined( 'WOOSW_VERSION' ) && define( 'WOOSW_VERSION', '3.0.3' );
20
+ ! defined( 'WOOSW_FILE' ) && define( 'WOOSW_FILE', __FILE__ );
21
  ! defined( 'WOOSW_URI' ) && define( 'WOOSW_URI', plugin_dir_url( __FILE__ ) );
22
+ ! defined( 'WOOSW_DIR' ) && define( 'WOOSW_DIR', plugin_dir_path( __FILE__ ) );
23
  ! defined( 'WOOSW_REVIEWS' ) && define( 'WOOSW_REVIEWS', 'https://wordpress.org/support/plugin/woo-smart-wishlist/reviews/?filter=5' );
24
  ! defined( 'WOOSW_CHANGELOG' ) && define( 'WOOSW_CHANGELOG', 'https://wordpress.org/plugins/woo-smart-wishlist/#developers' );
25
  ! defined( 'WOOSW_DISCUSSION' ) && define( 'WOOSW_DISCUSSION', 'https://wordpress.org/support/plugin/woo-smart-wishlist' );
127
 
128
  // dropdown multiple
129
  add_filter( 'wp_dropdown_cats', array( $this, 'dropdown_cats_multiple' ), 10, 2 );
130
+
131
+ // kses allowed html
132
+ add_filter( 'wp_kses_allowed_html', array( $this, 'kses_allowed_html' ), 99, 2 );
133
  }
134
 
135
  function query_vars( $vars ) {
143
  self::$localization = (array) get_option( 'woosw_localization' );
144
 
145
  // added products
146
+ $key = isset( $_COOKIE['woosw_key'] ) ? sanitize_text_field( $_COOKIE['woosw_key'] ) : '#';
147
 
148
  if ( get_option( 'woosw_list_' . $key ) ) {
149
  self::$added_products = get_option( 'woosw_list_' . $key );
220
  $str = $default;
221
  }
222
 
223
+ return esc_html( apply_filters( 'woosw_localization_' . $key, $str ) );
224
  }
225
 
226
  function add_to_cart( $cart_item_key, $product_id ) {
247
  }
248
 
249
  $key = self::get_key();
250
+ $product_id = absint( isset( $_REQUEST['add_to_wishlist'] ) ? (int) sanitize_text_field( $_REQUEST['add_to_wishlist'] ) : 0 );
251
+ $product_id = absint( isset( $_REQUEST['add-to-wishlist'] ) ? (int) sanitize_text_field( $_REQUEST['add-to-wishlist'] ) : $product_id );
252
 
253
  if ( $product_id ) {
254
  if ( $key !== '#' && $key !== 'WOOSW' ) {
279
  $return = array( 'status' => 0 );
280
  $key = self::get_key();
281
 
282
+ if ( ( $product_id = (int) sanitize_text_field( $_POST['product_id'] ) ) > 0 ) {
283
  if ( $key === '#' ) {
284
  $return['status'] = 0;
285
  $return['notice'] = self::localization( 'login_message', esc_html__( 'Please log in to use the wishlist!', 'woo-smart-wishlist' ) );
337
  $key = self::get_key();
338
  }
339
 
340
+ if ( ( $product_id = (int) sanitize_text_field( $_POST['product_id'] ) ) > 0 ) {
341
  if ( $key === '#' ) {
342
  $return['notice'] = self::localization( 'login_message', esc_html__( 'Please log in to use the wishlist!', 'woo-smart-wishlist' ) );
343
  } else {
514
  if ( get_query_var( 'woosw_id' ) ) {
515
  $key = get_query_var( 'woosw_id' );
516
  } elseif ( isset( $_REQUEST['wid'] ) && ! empty( $_REQUEST['wid'] ) ) {
517
+ $key = sanitize_text_field( $_REQUEST['wid'] );
518
  } else {
519
  $key = self::get_key();
520
  }
609
  </div>
610
  <div class="wpclever_settings_page_content">
611
  <?php if ( $active_tab === 'settings' ) {
612
+ if ( isset( $_REQUEST['settings-updated'] ) && ( sanitize_text_field( $_REQUEST['settings-updated'] ) === 'true' ) ) {
613
  flush_rewrite_rules();
614
  }
615
  ?>
653
  <?php esc_html_e( 'Multiple Wishlist', 'woo-smart-wishlist' ); ?>
654
  </th>
655
  <td>
656
+ <span class="description" style="color: #c9356e">This feature is only available on the Premium Version. Click <a
 
657
  href="https://wpclever.net/downloads/smart-wishlist?utm_source=pro&utm_medium=woosw&utm_campaign=wporg"
658
+ target="_blank">here</a> to buy, just $29.</span>
 
659
  </td>
660
  </tr>
661
  <tr>
1436
  }
1437
 
1438
  function get_items( $key ) {
1439
+ ob_start();
1440
+
1441
  $products = get_option( 'woosw_list_' . $key );
1442
  $link = get_option( 'woosw_link', 'yes' );
 
1443
 
1444
  do_action( 'woosw_before_items', $key, $products );
1445
 
1467
  } else {
1468
  $product_note = '';
1469
  } ?>
1470
+ <tr class="<?php echo esc_attr( 'woosw-item woosw-item-' . $product_id ); ?>"
1471
  data-id="<?php echo esc_attr( $product_id ); ?>">
1472
 
1473
  <?php do_action( 'woosw_wishlist_item_before', $product, $product_id, $key ); ?>
1477
  <?php } ?>
1478
 
1479
  <td class="woosw-item--image">
1480
+ <?php
1481
+ if ( $link !== 'no' ) {
1482
+ echo '<a ' . ( $link === 'yes_popup' ? 'class="woosq-link" data-id="' . esc_attr( $product_id ) . '" data-context="woosw"' : '' ) . ' href="' . esc_url( $product->get_permalink() ) . '" ' . ( $link === 'yes_blank' ? 'target="_blank"' : '' ) . '>';
1483
+ echo wp_kses( apply_filters( 'woosw_item_image', $product->get_image() ), 'woosw' );
1484
+ echo '</a>';
1485
+ } else {
1486
+ echo wp_kses( apply_filters( 'woosw_item_image', $product->get_image() ), 'woosw' );
1487
  }
1488
 
1489
+ do_action( 'woosw_wishlist_item_image', $product, $product_id, $key );
1490
+ ?>
1491
  </td>
1492
 
1493
  <td class="woosw-item--info">
1494
  <?php if ( $link !== 'no' ) {
1495
+ echo '<div class="woosw-item--name"><a ' . ( $link === 'yes_popup' ? 'class="woosq-link" data-id="' . esc_attr( $product_id ) . '" data-context="woosw"' : '' ) . ' href="' . esc_url( $product->get_permalink() ) . '" ' . ( $link === 'yes_blank' ? 'target="_blank"' : '' ) . '>' . esc_html( apply_filters( 'woosw_item_name', $product->get_name(), $product ) ) . '</a></div>';
1496
  } else {
1497
+ echo '<div class="woosw-item--name">' . esc_html( apply_filters( 'woosw_item_name', $product->get_name(), $product ) ) . '</div>';
1498
  }
1499
 
1500
+ echo '<div class="woosw-item--price">' . wp_kses( apply_filters( 'woosw_item_price', $product->get_price_html(), $product ), 'woosw' ) . '</div>';
1501
 
1502
+ echo '<div class="woosw-item--time">' . esc_html( apply_filters( 'woosw_item_time', $product_time, $product ) ) . '</div>';
1503
 
1504
  do_action( 'woosw_wishlist_item_info', $product, $product_id, $key ); ?>
1505
  </td>
1506
 
1507
  <td class="woosw-item--actions">
1508
  <div class="woosw-item--stock">
1509
+ <?php $product->is_in_stock() ? esc_html_e( 'In stock', 'woo-smart-wishlist' ) : esc_html_e( 'Out of stock', 'woo-smart-wishlist' ); ?>
1510
  </div>
1511
 
1512
  <div class="woosw-item--add">
1531
 
1532
  do_action( 'woosw_after_items', $key, $products );
1533
 
1534
+ return apply_filters( 'woosw_wishlist_items', ob_get_clean(), $key, $products );
 
 
1535
  }
1536
 
1537
  function nav_menu_items( $items, $args ) {
1566
  }
1567
 
1568
  if ( $selected ) {
1569
+ $menu_item = '<li class="' . esc_attr( apply_filters( 'woosw_menu_item_class', 'menu-item woosw-menu-item menu-item-type-woosw' ) ) . '"><a href="' . self::get_url() . '"><span class="woosw-menu-item-inner" data-count="' . esc_attr( self::get_count() ) . '">' . esc_html( apply_filters( 'woosw_menu_item_label', self::localization( 'menu_label', esc_html__( 'Wishlist', 'woo-smart-wishlist' ) ) ) ) . '</span></a></li>';
1570
  $items .= apply_filters( 'woosw_menu_item', $menu_item );
1571
  }
1572
 
1607
  if ( get_option( 'woosw_empty_button', 'no' ) === 'yes' ) {
1608
  echo '<span class="woosw-empty"' . ( $count ? '' : ' style="display:none"' ) . '>' . self::localization( 'empty_button', esc_html__( 'remove all', 'woo-smart-wishlist' ) ) . '</span>';
1609
  }
1610
+
1611
  echo '</span>';
1612
  ?>
1613
  <span class="woosw-popup-close"></span>
1614
  </div>
1615
  <div class="woosw-popup-content-mid">
1616
  <?php if ( ! empty( $message ) ) {
1617
+ echo '<div class="woosw-popup-content-mid-massage">' . esc_html( $message ) . '</div>';
1618
  } else {
1619
  echo self::get_items( $key );
1620
  } ?>
1691
  return true;
1692
  }
1693
  } else {
1694
+ if ( isset( $_COOKIE['woosw_key'] ) && ( sanitize_text_field( $_COOKIE['woosw_key'] ) === $key ) ) {
1695
  return true;
1696
  }
1697
  }
1749
  }
1750
 
1751
  if ( isset( $_COOKIE['woosw_key'] ) ) {
1752
+ return trim( sanitize_text_field( $_COOKIE['woosw_key'] ) );
1753
  }
1754
 
1755
  return 'WOOSW';
1775
  }
1776
  }
1777
 
1778
+ return esc_url( apply_filters( 'woosw_wishlist_url', $url, $key ) );
1779
  }
1780
 
1781
  public static function get_count( $key = null ) {
1789
  $count = 0;
1790
  }
1791
 
1792
+ return esc_html( apply_filters( 'woosw_wishlist_count', $count, $key ) );
1793
  }
1794
 
1795
  function product_columns( $columns ) {
1853
  $httponly = apply_filters( 'woosw_cookie_httponly', true );
1854
 
1855
  if ( isset( $_COOKIE['woosw_key'] ) && ! empty( $_COOKIE['woosw_key'] ) ) {
1856
+ wc_setcookie( 'woosw_key_ori', trim( sanitize_text_field( $_COOKIE['woosw_key'] ) ), time() + 604800, $secure, $httponly );
1857
  }
1858
 
1859
  wc_setcookie( 'woosw_key', $key, time() + 604800, $secure, $httponly );
1865
  $secure = apply_filters( 'woosw_cookie_secure', wc_site_is_https() && is_ssl() );
1866
  $httponly = apply_filters( 'woosw_cookie_httponly', true );
1867
 
1868
+ wc_setcookie( 'woosw_key', trim( sanitize_text_field( $_COOKIE['woosw_key_ori'] ) ), time() + 604800, $secure, $httponly );
1869
  } else {
1870
  unset( $_COOKIE['woosw_key_ori'] );
1871
  unset( $_COOKIE['woosw_key'] );
1907
  $wishlist_html = '';
1908
 
1909
  if ( isset( $_POST['key'] ) && $_POST['key'] != '' ) {
1910
+ ob_start();
1911
+
1912
+ $key = sanitize_text_field( $_POST['key'] );
1913
  $products = get_option( 'woosw_list_' . $key, true );
1914
  $count = count( $products );
 
1915
 
1916
  if ( count( $products ) > 0 ) {
1917
  echo '<div class="woosw-quickview-items">';
1918
 
1919
+ $user = $wpdb->get_results( $wpdb->prepare( 'SELECT user_id FROM `' . $wpdb->prefix . 'usermeta` WHERE `meta_key` = "woosw_key" AND `meta_value` = "%s" LIMIT 1', $key ) );
1920
 
1921
  echo '<div class="woosw-quickview-item">';
1922
  echo '<div class="woosw-quickview-item-image"><a href="' . self::get_url( $key, true ) . '" target="_blank">#' . $key . '</a></div>';
1957
 
1958
  $wishlist_html = ob_get_clean();
1959
  } elseif ( isset( $_POST['pid'] ) ) {
 
1960
  ob_start();
1961
 
1962
+ $pid = (int) sanitize_text_field( $_POST['pid'] );
1963
+ $keys = $wpdb->get_results( $wpdb->prepare( 'SELECT option_name FROM `' . $wpdb->prefix . 'options` WHERE `option_name` LIKE "%woosw_list_%" AND `option_value` LIKE "%i:%d;%"', $pid ) );
1964
  $count = count( $keys );
1965
 
1966
  if ( $count > 0 ) {
1982
  $products = get_option( $item->option_name );
1983
  $count = count( $products );
1984
  $key = str_replace( 'woosw_list_', '', $item->option_name );
1985
+ $user = $wpdb->get_results( $wpdb->prepare( 'SELECT user_id FROM `' . $wpdb->prefix . 'usermeta` WHERE `meta_key` = "woosw_key" AND `meta_value` = "%s" LIMIT 1', $key ) );
1986
 
1987
  echo '<div class="woosw-quickview-item">';
1988
  echo '<div class="woosw-quickview-item-image"><a href="' . self::get_url( $key, true ) . '" target="_blank">#' . $key . '</a></div>';
2026
 
2027
  return $output;
2028
  }
2029
+
2030
+ function kses_allowed_html( $allowed, $context ) {
2031
+ if ( $context === 'woosw' ) {
2032
+ return array(
2033
+ 'img' => array( 'class' => array(), 'src' => array(), 'alt' => array() ),
2034
+ 'div' => array(
2035
+ 'class' => array(),
2036
+ 'id' => array(),
2037
+ ),
2038
+ 'a' => array(
2039
+ 'class' => array(),
2040
+ 'id' => array(),
2041
+ 'data-id' => array(),
2042
+ 'href' => array(),
2043
+ 'title' => array()
2044
+ ),
2045
+ 'span' => array( 'class' => array(), 'id' => array() ),
2046
+ 'i' => array( 'class' => array() ),
2047
+ 'u' => array( 'class' => array() ),
2048
+ 's' => array( 'class' => array() ),
2049
+ 'strong' => array(),
2050
+ 'del' => array(),
2051
+ 'ins' => array(),
2052
+ );
2053
+ }
2054
+
2055
+ return $allowed;
2056
+ }
2057
  }
2058
 
2059
  new WPCleverWoosw();