Skip to content

Commit 8a16417

Browse files
chore: Release version 4.2.6
Merge branch 'release/4.2.6'
2 parents bf1546d + ae3cfcf commit 8a16417

File tree

18 files changed

+116
-67
lines changed

18 files changed

+116
-67
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
### v4.2.6 ( Jan 13, 2026 ) ###
2+
- **update:** Add brand fields in Vendor Product Creation Popup.
3+
- **update:** Add address fields on customer account migration form.
4+
- **update:** Add product tags creation separator (,) for vendor dashboard.
5+
- **fix:** Vendor list page redirection after creating a new vendor.
6+
17
### v4.2.5 ( Jan 05, 2026 ) ###
28
- **fix:** Add translation support to store performance report labels.
39
- **fix:** Social profile URL's not accessible for staff users.

assets/src/js/product-editor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@
443443
} );
444444
$( '.product_tag_search' ).select2( {
445445
allowClear: false,
446+
tokenSeparators: [ ',' ],
446447
tags:
447448
dokan.product_vendors_can_create_tags &&
448449
'on' === dokan.product_vendors_can_create_tags,

composer.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dokan-class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ final class WeDevs_Dokan {
2525
*
2626
* @var string
2727
*/
28-
public $version = '4.2.5';
28+
public $version = '4.2.6';
2929

3030
/**
3131
* Instance of self

dokan.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Dokan
44
* Plugin URI: https://dokan.co/wordpress/
55
* Description: An e-commerce marketplace plugin for WordPress. Powered by WooCommerce and weDevs.
6-
* Version: 4.2.5
6+
* Version: 4.2.6
77
* Author: Dokan Inc.
88
* Author URI: https://dokan.co/wordpress/
99
* Text Domain: dokan-lite

includes/Frontend/MyAccount/BecomeAVendor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function become_a_seller_form_handler() {
115115
'fname' => isset( $_POST['fname'] ) ? sanitize_text_field( wp_unslash( $_POST['fname'] ) ) : '',
116116
'lname' => isset( $_POST['lname'] ) ? sanitize_text_field( wp_unslash( $_POST['lname'] ) ) : '',
117117
'shopname' => isset( $_POST['shopname'] ) ? sanitize_text_field( wp_unslash( $_POST['shopname'] ) ) : '',
118-
'address' => isset( $_POST['address'] ) ? sanitize_text_field( wp_unslash( $_POST['address'] ) ) : '',
118+
'address' => isset( $_POST['dokan_address'] ) ? wc_clean( wp_unslash( $_POST['dokan_address'] ) ) : '',
119119
'phone' => isset( $_POST['phone'] ) ? dokan_sanitize_phone_number( wp_unslash( $_POST['phone'] ) ) : '',
120120
'shopurl' => isset( $_POST['shopurl'] ) ? sanitize_text_field( wp_unslash( $_POST['shopurl'] ) ) : '',
121121
]

includes/Product/Hooks.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public function __construct() {
3636
// Add WooCommerce product brands support.
3737
add_action( 'dokan_new_product_added', [ $this, 'update_product_brands_by_id' ], 10, 2 );
3838
add_action( 'dokan_product_updated', [ $this, 'update_product_brands_by_id' ], 10, 2 );
39-
add_action( 'dokan_product_edit_after_pricing_fields', [ $this, 'add_product_brand_template' ] );
39+
add_action( 'dokan_product_edit_after_pricing_fields', [ $this, 'add_product_brand_template_in_edit_product' ] );
40+
add_action( 'dokan_new_product_after_product_category', [ $this, 'add_product_brand_template_in_add_product' ] );
4041

4142
// Remove product type filter if pro not exists.
4243
add_filter( 'dokan_product_listing_filter_args', [ $this, 'remove_product_type_filter' ] );
@@ -574,6 +575,19 @@ public static function save_per_product_commission_options( $post_id, $data = []
574575
);
575576
}
576577

578+
579+
580+
/**
581+
* Add product brand taxonomy template
582+
*
583+
* @since 4.2.6
584+
*
585+
* @return void
586+
*/
587+
public function add_product_brand_template_in_add_product(): void {
588+
dokan_get_template_part( 'products/product-brand', '', [ 'product_brands' => [] ] );
589+
}
590+
577591
/**
578592
* Add product brand taxonomy template
579593
*
@@ -583,7 +597,7 @@ public static function save_per_product_commission_options( $post_id, $data = []
583597
*
584598
* @return void
585599
*/
586-
public function add_product_brand_template( \WP_Post $post ): void {
600+
public function add_product_brand_template_in_edit_product( \WP_Post $post ): void {
587601
if ( ! current_user_can( 'dokan_edit_product' ) ) {
588602
return;
589603
}

includes/Vendor/Vendor.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,6 +1336,10 @@ public function set_bank_swift( $value ) {
13361336
$this->set_payment_prop( 'swift', 'bank', wc_clean( $value ) );
13371337
}
13381338

1339+
public function set_address( $value ) {
1340+
$this->set_prop( 'address', wc_clean( $value ) );
1341+
}
1342+
13391343
/**
13401344
* Set street 1
13411345
*

languages/dokan-lite.pot

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Copyright (c) 2026 Dokan Inc. All Rights Reserved.
22
msgid ""
33
msgstr ""
4-
"Project-Id-Version: Dokan 4.2.5\n"
4+
"Project-Id-Version: Dokan 4.2.6\n"
55
"Report-Msgid-Bugs-To: https://dokan.co/contact/\n"
66
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
77
"Language-Team: LANGUAGE <[email protected]>\n"
88
"MIME-Version: 1.0\n"
99
"Content-Type: text/plain; charset=UTF-8\n"
1010
"Content-Transfer-Encoding: 8bit\n"
11-
"POT-Creation-Date: 2026-01-05T11:42:57+00:00\n"
11+
"POT-Creation-Date: 2026-01-13T06:38:55+00:00\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"X-Generator: WP-CLI 2.11.0\n"
1414
"X-Domain: dokan-lite\n"
@@ -1014,7 +1014,7 @@ msgstr ""
10141014
#: includes/Admin/OnboardingSetup/Steps/CommissionStep.php:146
10151015
#: includes/Admin/Settings.php:539
10161016
#: includes/Admin/Settings.php:592
1017-
#: includes/Product/Hooks.php:489
1017+
#: includes/Product/Hooks.php:490
10181018
#: assets/js/dokan-admin-dashboard.js:179
10191019
#: assets/js/dokan-setup-wizard-commission.js:1
10201020
#: assets/js/vue-admin.js:2
@@ -2641,7 +2641,7 @@ msgid "Delete"
26412641
msgstr ""
26422642

26432643
#: includes/Ajax.php:530
2644-
#: includes/Product/Hooks.php:64
2644+
#: includes/Product/Hooks.php:65
26452645
msgid "Error: Nonce verification failed"
26462646
msgstr ""
26472647

@@ -3292,14 +3292,14 @@ msgstr ""
32923292

32933293
#: includes/Blocks/ProductBlock.php:40
32943294
#: templates/products/edit-product-single.php:399
3295-
#: templates/products/new-product.php:271
3295+
#: templates/products/new-product.php:273
32963296
#: templates/products/tmpl-add-product-popup.php:18
32973297
msgid "Select tags/Add tags"
32983298
msgstr ""
32993299

33003300
#: includes/Blocks/ProductBlock.php:40
33013301
#: templates/products/edit-product-single.php:399
3302-
#: templates/products/new-product.php:271
3302+
#: templates/products/new-product.php:273
33033303
#: templates/products/tmpl-add-product-popup.php:18
33043304
msgid "Select product tags"
33053305
msgstr ""
@@ -5771,7 +5771,7 @@ msgid "Catalog"
57715771
msgstr ""
57725772

57735773
#: includes/Product/functions.php:363
5774-
#: includes/Product/Hooks.php:201
5774+
#: includes/Product/Hooks.php:202
57755775
#: templates/products/listing-filter.php:110
57765776
#: assets/js/components.js:179
57775777
#: assets/js/dashboard-charts.js:1
@@ -5826,29 +5826,29 @@ msgstr ""
58265826
msgid "Relevance"
58275827
msgstr ""
58285828

5829-
#: includes/Product/Hooks.php:71
5829+
#: includes/Product/Hooks.php:72
58305830
msgid "Products not found with this search"
58315831
msgstr ""
58325832

5833-
#: includes/Product/Hooks.php:160
5833+
#: includes/Product/Hooks.php:161
58345834
#: templates/orders/commission-meta-box-html.php:85
58355835
msgid "SKU:"
58365836
msgstr ""
58375837

5838-
#: includes/Product/Hooks.php:197
5838+
#: includes/Product/Hooks.php:198
58395839
msgid "Enter product name"
58405840
msgstr ""
58415841

5842-
#: includes/Product/Hooks.php:205
5842+
#: includes/Product/Hooks.php:206
58435843
msgid "Shop order"
58445844
msgstr ""
58455845

5846-
#: includes/Product/Hooks.php:423
5846+
#: includes/Product/Hooks.php:424
58475847
msgid "As this is your own product, the \"Add to Cart\" button has been removed. Please visit as a guest to view it."
58485848
msgstr ""
58495849

5850-
#: includes/Product/Hooks.php:493
58515850
#: includes/Product/Hooks.php:494
5851+
#: includes/Product/Hooks.php:495
58525852
#: assets/js/vue-admin.js:2
58535853
msgid "When the value is 0, no commissions will be deducted from this vendor."
58545854
msgstr ""
@@ -9683,7 +9683,7 @@ msgstr ""
96839683

96849684
#: templates/account/become-a-vendor-section.php:16
96859685
#: templates/account/become-a-vendor-section.php:20
9686-
#: templates/account/update-customer-to-vendor.php:78
9686+
#: templates/account/update-customer-to-vendor.php:87
96879687
msgid "Become a Vendor"
96889688
msgstr ""
96899689

@@ -9707,12 +9707,12 @@ msgstr ""
97079707
msgid "Shop URL"
97089708
msgstr ""
97099709

9710-
#: templates/account/update-customer-to-vendor.php:67
9710+
#: templates/account/update-customer-to-vendor.php:76
97119711
msgid "Terms &amp; Conditions"
97129712
msgstr ""
97139713

97149714
#. translators: 1. Terms and conditions of agreement link.
9715-
#: templates/account/update-customer-to-vendor.php:69
9715+
#: templates/account/update-customer-to-vendor.php:78
97169716
msgid "I have read and agree to the %1$s."
97179717
msgstr ""
97189718

@@ -11096,8 +11096,8 @@ msgid "YYYY-MM-DD"
1109611096
msgstr ""
1109711097

1109811098
#: templates/products/edit-product-single.php:395
11099-
#: templates/products/new-product.php:270
11100-
#: templates/products/tmpl-add-product-popup.php:104
11099+
#: templates/products/new-product.php:272
11100+
#: templates/products/tmpl-add-product-popup.php:106
1110111101
msgid "Tags"
1110211102
msgstr ""
1110311103

@@ -11122,7 +11122,7 @@ msgid "Short Description"
1112211122
msgstr ""
1112311123

1112411124
#: templates/products/edit-product-single.php:518
11125-
#: templates/products/new-product.php:286
11125+
#: templates/products/new-product.php:288
1112611126
msgid "Description"
1112711127
msgstr ""
1112811128

@@ -11220,15 +11220,15 @@ msgstr ""
1122011220
msgid "Short description of the product..."
1122111221
msgstr ""
1122211222

11223-
#: templates/products/new-product.php:286
11223+
#: templates/products/new-product.php:288
1122411224
msgid "Add your product description"
1122511225
msgstr ""
1122611226

11227-
#: templates/products/new-product.php:315
11227+
#: templates/products/new-product.php:317
1122811228
msgid "Create & Add New"
1122911229
msgstr ""
1123011230

11231-
#: templates/products/new-product.php:318
11231+
#: templates/products/new-product.php:320
1123211232
msgid "Create Product"
1123311233
msgstr ""
1123411234

@@ -11327,15 +11327,15 @@ msgstr ""
1132711327
msgid "Ready to start selling something awesome?"
1132811328
msgstr ""
1132911329

11330-
#: templates/products/tmpl-add-product-popup.php:111
11330+
#: templates/products/tmpl-add-product-popup.php:113
1133111331
msgid "Enter some short description about this product..."
1133211332
msgstr ""
1133311333

11334-
#: templates/products/tmpl-add-product-popup.php:119
11334+
#: templates/products/tmpl-add-product-popup.php:121
1133511335
msgid "Create product"
1133611336
msgstr ""
1133711337

11338-
#: templates/products/tmpl-add-product-popup.php:129
11338+
#: templates/products/tmpl-add-product-popup.php:131
1133911339
msgid "Create & add new"
1134011340
msgstr ""
1134111341

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)