Dokan – Best WooCommerce Multivendor Marketplace Solution – Build Your Own Amazon, eBay, Etsy - Version 3.7.3

Version Description

Download this release

Release Info

Developer tareq1988
Plugin Icon wp plugin Dokan – Best WooCommerce Multivendor Marketplace Solution – Build Your Own Amazon, eBay, Etsy
Version 3.7.3
Comparing to
See all releases

Code changes from version 3.7.2 to 3.7.3

dokan.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Dokan
4
  * Plugin URI: https://wordpress.org/plugins/dokan-lite/
5
  * Description: An e-commerce marketplace plugin for WordPress. Powered by WooCommerce and weDevs.
6
- * Version: 3.7.2
7
  * Author: weDevs
8
  * Author URI: https://wedevs.com/
9
  * Text Domain: dokan-lite
@@ -56,7 +56,7 @@ final class WeDevs_Dokan {
56
  *
57
  * @var string
58
  */
59
- public $version = '3.7.2';
60
 
61
  /**
62
  * Instance of self
3
  * Plugin Name: Dokan
4
  * Plugin URI: https://wordpress.org/plugins/dokan-lite/
5
  * Description: An e-commerce marketplace plugin for WordPress. Powered by WooCommerce and weDevs.
6
+ * Version: 3.7.3
7
  * Author: weDevs
8
  * Author URI: https://wedevs.com/
9
  * Text Domain: dokan-lite
56
  *
57
  * @var string
58
  */
59
+ public $version = '3.7.3';
60
 
61
  /**
62
  * Instance of self
includes/Admin/functions.php CHANGED
@@ -49,27 +49,29 @@ function dokan_override_product_author( $product, $seller_id ) {
49
  do_action( 'dokan_after_override_product_author', $product, $seller_id );
50
  }
51
 
52
- /**
53
- * Overrides author for products with variations.
54
- *
55
- * @since 3.7.1
56
- *
57
- * @param WC_Product $product
58
- * @param int $seller_id
59
- *
60
- * @return void
61
- */
62
- function dokan_override_author_for_variations( $product, $seller_id ) {
63
- if ( 'variable' === $product->get_type() || 'variable-subscription' === $product->get_type() ) {
64
- $variations = $product->get_children();
65
-
66
- foreach ( $variations as $variation_id ) {
67
- wp_update_post(
68
- [
69
- 'ID' => $variation_id,
70
- 'post_author' => $seller_id,
71
- ]
72
- );
 
 
73
  }
74
  }
75
  }
49
  do_action( 'dokan_after_override_product_author', $product, $seller_id );
50
  }
51
 
52
+ if ( ! function_exists( 'dokan_override_author_for_variations' ) ) {
53
+ /**
54
+ * Overrides author for products with variations.
55
+ *
56
+ * @since 3.7.1
57
+ *
58
+ * @param WC_Product $product
59
+ * @param int $seller_id
60
+ *
61
+ * @return void
62
+ */
63
+ function dokan_override_author_for_variations( $product, $seller_id ) {
64
+ if ( 'variable' === $product->get_type() || 'variable-subscription' === $product->get_type() ) {
65
+ $variations = $product->get_children();
66
+
67
+ foreach ( $variations as $variation_id ) {
68
+ wp_update_post(
69
+ [
70
+ 'ID' => $variation_id,
71
+ 'post_author' => $seller_id,
72
+ ]
73
+ );
74
+ }
75
  }
76
  }
77
  }
languages/dokan-lite.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the GPL2.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Dokan 3.7.2\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
- "POT-Creation-Date: 2022-10-27 04:52:26+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -1476,30 +1476,30 @@ msgstr ""
1476
  msgid "This vendor will be marked as a featured vendor."
1477
  msgstr ""
1478
 
1479
- #: includes/Admin/functions.php:239 includes/Admin/functions.php:506
1480
  #: includes/REST/AdminReportController.php:140
1481
  msgid "Total Sales"
1482
  msgstr ""
1483
 
1484
- #: includes/Admin/functions.php:246 includes/Admin/functions.php:513
1485
  msgid "Total: "
1486
  msgstr ""
1487
 
1488
- #: includes/Admin/functions.php:249 includes/Admin/functions.php:516
1489
  #: includes/REST/AdminReportController.php:148 includes/reports.php:365
1490
  msgid "Number of orders"
1491
  msgstr ""
1492
 
1493
- #: includes/Admin/functions.php:256 includes/Admin/functions.php:523
1494
  msgid "sales"
1495
  msgstr ""
1496
 
1497
- #: includes/Admin/functions.php:259 includes/Admin/functions.php:526
1498
  #: includes/REST/AdminReportController.php:155
1499
  msgid "Commision"
1500
  msgstr ""
1501
 
1502
- #: includes/Admin/functions.php:266 includes/Admin/functions.php:533
1503
  msgid "Commision: "
1504
  msgstr ""
1505
 
2
  # This file is distributed under the GPL2.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Dokan 3.7.3\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
+ "POT-Creation-Date: 2022-10-27 08:37:52+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
1476
  msgid "This vendor will be marked as a featured vendor."
1477
  msgstr ""
1478
 
1479
+ #: includes/Admin/functions.php:241 includes/Admin/functions.php:508
1480
  #: includes/REST/AdminReportController.php:140
1481
  msgid "Total Sales"
1482
  msgstr ""
1483
 
1484
+ #: includes/Admin/functions.php:248 includes/Admin/functions.php:515
1485
  msgid "Total: "
1486
  msgstr ""
1487
 
1488
+ #: includes/Admin/functions.php:251 includes/Admin/functions.php:518
1489
  #: includes/REST/AdminReportController.php:148 includes/reports.php:365
1490
  msgid "Number of orders"
1491
  msgstr ""
1492
 
1493
+ #: includes/Admin/functions.php:258 includes/Admin/functions.php:525
1494
  msgid "sales"
1495
  msgstr ""
1496
 
1497
+ #: includes/Admin/functions.php:261 includes/Admin/functions.php:528
1498
  #: includes/REST/AdminReportController.php:155
1499
  msgid "Commision"
1500
  msgstr ""
1501
 
1502
+ #: includes/Admin/functions.php:268 includes/Admin/functions.php:535
1503
  msgid "Commision: "
1504
  msgstr ""
1505
 
readme.txt CHANGED
@@ -7,7 +7,7 @@ Tested up to: 6.0.3
7
  WC requires at least: 5.0.0
8
  WC tested up to: 7.0.0
9
  Requires PHP: 7.0
10
- Stable tag: 3.7.2
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -313,13 +313,17 @@ A. Just install and activate the PRO version without deleting the free plugin. A
313
 
314
  == Changelog ==
315
 
 
 
 
 
316
  = v3.7.2 ( Oct 27, 2022 ) =
317
 
318
- **new:** Added a new filter hooked named `dokan_rest_api_store_collection_params` for StoreController request parameters
319
- **new:** Introduced `dokanVendorFilterSectionStart` and `DokanGetVendorArgs` js filter hooks
320
- **fix:** [AdminCommission] - Percentage Commission does not support "comma" as decimal separator under Dokan admin settings `Selling Options` page
321
- **fix:** [Products] Product author is assigned to the shop manager when the shop manager publishes a product drafted by the admin.
322
- **fix:** Spaces between paragraphs are too large under the store terms and condition page.
323
 
324
  = v3.7.1 ( Oct 11, 2022 ) =
325
 
7
  WC requires at least: 5.0.0
8
  WC tested up to: 7.0.0
9
  Requires PHP: 7.0
10
+ Stable tag: 3.7.3
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
313
 
314
  == Changelog ==
315
 
316
+ = v3.7.3 ( Oct 27, 2022 ) =
317
+
318
+ - **fix:** Fixed a fatal error due to a function moved from dokan pro
319
+
320
  = v3.7.2 ( Oct 27, 2022 ) =
321
 
322
+ - **new:** Added a new filter hooked named `dokan_rest_api_store_collection_params` for StoreController request parameters
323
+ - **new:** Introduced `dokanVendorFilterSectionStart` and `DokanGetVendorArgs` js filter hooks
324
+ - **fix:** [AdminCommission] - Percentage Commission does not support "comma" as decimal separator under Dokan admin settings `Selling Options` page
325
+ - **fix:** [Products] Product author is assigned to the shop manager when the shop manager publishes a product drafted by the admin.
326
+ - **fix:** Spaces between paragraphs are too large under the store terms and condition page.
327
 
328
  = v3.7.1 ( Oct 11, 2022 ) =
329
 
templates/whats-new.php CHANGED
@@ -3,6 +3,18 @@
3
  * When you are adding new version please follow this sequence for changes: New Feature, New, Improvement, Fix...
4
  */
5
  $changelog = [
 
 
 
 
 
 
 
 
 
 
 
 
6
  [
7
  'version' => 'Version 3.7.2',
8
  'released' => '2022-10-27',
3
  * When you are adding new version please follow this sequence for changes: New Feature, New, Improvement, Fix...
4
  */
5
  $changelog = [
6
+ [
7
+ 'version' => 'Version 3.7.3',
8
+ 'released' => '2022-10-27',
9
+ 'changes' => [
10
+ 'New' => [
11
+ [
12
+ 'title' => 'Fixed a fatal error due to a function moved from dokan pro',
13
+ 'description' => '',
14
+ ],
15
+ ],
16
+ ],
17
+ ],
18
  [
19
  'version' => 'Version 3.7.2',
20
  'released' => '2022-10-27',
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitb857f1aee7ef987be046f4132d92cf67::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit443eb839fe1c1abac217e8c27e8e82cd::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitb857f1aee7ef987be046f4132d92cf67
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInitb857f1aee7ef987be046f4132d92cf67
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
- spl_autoload_register(array('ComposerAutoloaderInitb857f1aee7ef987be046f4132d92cf67', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
- spl_autoload_unregister(array('ComposerAutoloaderInitb857f1aee7ef987be046f4132d92cf67', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
- call_user_func(\Composer\Autoload\ComposerStaticInitb857f1aee7ef987be046f4132d92cf67::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
@@ -53,12 +53,12 @@ class ComposerAutoloaderInitb857f1aee7ef987be046f4132d92cf67
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
- $includeFiles = Composer\Autoload\ComposerStaticInitb857f1aee7ef987be046f4132d92cf67::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
- composerRequireb857f1aee7ef987be046f4132d92cf67($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
@@ -70,7 +70,7 @@ class ComposerAutoloaderInitb857f1aee7ef987be046f4132d92cf67
70
  * @param string $file
71
  * @return void
72
  */
73
- function composerRequireb857f1aee7ef987be046f4132d92cf67($fileIdentifier, $file)
74
  {
75
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
76
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit443eb839fe1c1abac217e8c27e8e82cd
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit443eb839fe1c1abac217e8c27e8e82cd', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit443eb839fe1c1abac217e8c27e8e82cd', 'loadClassLoader'));
30
 
31
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
32
  if ($useStaticLoader) {
33
  require __DIR__ . '/autoload_static.php';
34
 
35
+ call_user_func(\Composer\Autoload\ComposerStaticInit443eb839fe1c1abac217e8c27e8e82cd::getInitializer($loader));
36
  } else {
37
  $map = require __DIR__ . '/autoload_namespaces.php';
38
  foreach ($map as $namespace => $path) {
53
  $loader->register(true);
54
 
55
  if ($useStaticLoader) {
56
+ $includeFiles = Composer\Autoload\ComposerStaticInit443eb839fe1c1abac217e8c27e8e82cd::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire443eb839fe1c1abac217e8c27e8e82cd($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
70
  * @param string $file
71
  * @return void
72
  */
73
+ function composerRequire443eb839fe1c1abac217e8c27e8e82cd($fileIdentifier, $file)
74
  {
75
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
76
  $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitb857f1aee7ef987be046f4132d92cf67
8
  {
9
  public static $files = array (
10
  'b45b351e6b6f7487d819961fef2fda77' => __DIR__ . '/..' . '/jakeasmith/http_build_url/src/http_build_url.php',
@@ -250,9 +250,9 @@ class ComposerStaticInitb857f1aee7ef987be046f4132d92cf67
250
  public static function getInitializer(ClassLoader $loader)
251
  {
252
  return \Closure::bind(function () use ($loader) {
253
- $loader->prefixLengthsPsr4 = ComposerStaticInitb857f1aee7ef987be046f4132d92cf67::$prefixLengthsPsr4;
254
- $loader->prefixDirsPsr4 = ComposerStaticInitb857f1aee7ef987be046f4132d92cf67::$prefixDirsPsr4;
255
- $loader->classMap = ComposerStaticInitb857f1aee7ef987be046f4132d92cf67::$classMap;
256
 
257
  }, null, ClassLoader::class);
258
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit443eb839fe1c1abac217e8c27e8e82cd
8
  {
9
  public static $files = array (
10
  'b45b351e6b6f7487d819961fef2fda77' => __DIR__ . '/..' . '/jakeasmith/http_build_url/src/http_build_url.php',
250
  public static function getInitializer(ClassLoader $loader)
251
  {
252
  return \Closure::bind(function () use ($loader) {
253
+ $loader->prefixLengthsPsr4 = ComposerStaticInit443eb839fe1c1abac217e8c27e8e82cd::$prefixLengthsPsr4;
254
+ $loader->prefixDirsPsr4 = ComposerStaticInit443eb839fe1c1abac217e8c27e8e82cd::$prefixDirsPsr4;
255
+ $loader->classMap = ComposerStaticInit443eb839fe1c1abac217e8c27e8e82cd::$classMap;
256
 
257
  }, null, ClassLoader::class);
258
  }