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

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.4
Comparing to
See all releases

Code changes from version 3.7.3 to 3.7.4

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.3
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.3';
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.4
7
  * Author: weDevs
8
  * Author URI: https://wedevs.com/
9
  * Text Domain: dokan-lite
56
  *
57
  * @var string
58
  */
59
+ public $version = '3.7.4';
60
 
61
  /**
62
  * Instance of self
includes/Admin/functions.php CHANGED
@@ -44,34 +44,32 @@ function dokan_override_product_author( $product, $seller_id ) {
44
  ]
45
  );
46
 
47
- dokan_override_author_for_variations( $product, $seller_id );
48
 
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
  }
44
  ]
45
  );
46
 
47
+ dokan_override_author_for_product_variations( $product, $seller_id );
48
 
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.4
56
+ *
57
+ * @param WC_Product $product
58
+ * @param int $seller_id
59
+ *
60
+ * @return void
61
+ */
62
+ function dokan_override_author_for_product_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
  }
includes/Upgrade/Upgrades/BackgroundProcesses/V_3_0_10_ProductAttributesAuthorId.php CHANGED
@@ -73,7 +73,7 @@ class V_3_0_10_ProductAttributesAuthorId extends DokanBackgroundProcesses {
73
  * Same as product author id
74
  */
75
  if ( $product_author !== $variation_author_id ) {
76
- dokan_override_author_for_variations( $product, $product_author );
77
  }
78
  }
79
  }
73
  * Same as product author id
74
  */
75
  if ( $product_author !== $variation_author_id ) {
76
+ dokan_override_author_for_product_variations( $product, $product_author );
77
  }
78
  }
79
  }
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.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,30 +1476,30 @@ msgstr ""
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
 
2
  # This file is distributed under the GPL2.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Dokan 3.7.4\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
+ "POT-Creation-Date: 2022-10-27 12:18:01+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: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
 
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.3
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -313,6 +313,10 @@ A. Just install and activate the PRO version without deleting the free plugin. A
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
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.4
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.4 ( Oct 27, 2022 ) =
317
+
318
+ - **fix:** Fixed a fatal error update updating to Dokan if Dokan Pro version is outdated
319
+
320
  = v3.7.3 ( Oct 27, 2022 ) =
321
 
322
  - **fix:** Fixed a fatal error due to a function moved from dokan pro
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit443eb839fe1c1abac217e8c27e8e82cd::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit60f578aa51b51bef400f4eb4bdb516b9::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit443eb839fe1c1abac217e8c27e8e82cd
6
  {
7
  private static $loader;
8
 
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit443eb839fe1c1abac217e8c27e8e82cd
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,12 +53,12 @@ class ComposerAutoloaderInit443eb839fe1c1abac217e8c27e8e82cd
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,7 +70,7 @@ class ComposerAutoloaderInit443eb839fe1c1abac217e8c27e8e82cd
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;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit60f578aa51b51bef400f4eb4bdb516b9
6
  {
7
  private static $loader;
8
 
24
 
25
  require __DIR__ . '/platform_check.php';
26
 
27
+ spl_autoload_register(array('ComposerAutoloaderInit60f578aa51b51bef400f4eb4bdb516b9', 'loadClassLoader'), true, true);
28
  self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
29
+ spl_autoload_unregister(array('ComposerAutoloaderInit60f578aa51b51bef400f4eb4bdb516b9', '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\ComposerStaticInit60f578aa51b51bef400f4eb4bdb516b9::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\ComposerStaticInit60f578aa51b51bef400f4eb4bdb516b9::$files;
57
  } else {
58
  $includeFiles = require __DIR__ . '/autoload_files.php';
59
  }
60
  foreach ($includeFiles as $fileIdentifier => $file) {
61
+ composerRequire60f578aa51b51bef400f4eb4bdb516b9($fileIdentifier, $file);
62
  }
63
 
64
  return $loader;
70
  * @param string $file
71
  * @return void
72
  */
73
+ function composerRequire60f578aa51b51bef400f4eb4bdb516b9($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 ComposerStaticInit443eb839fe1c1abac217e8c27e8e82cd
8
  {
9
  public static $files = array (
10
  'b45b351e6b6f7487d819961fef2fda77' => __DIR__ . '/..' . '/jakeasmith/http_build_url/src/http_build_url.php',
@@ -250,9 +250,9 @@ class ComposerStaticInit443eb839fe1c1abac217e8c27e8e82cd
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
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit60f578aa51b51bef400f4eb4bdb516b9
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 = ComposerStaticInit60f578aa51b51bef400f4eb4bdb516b9::$prefixLengthsPsr4;
254
+ $loader->prefixDirsPsr4 = ComposerStaticInit60f578aa51b51bef400f4eb4bdb516b9::$prefixDirsPsr4;
255
+ $loader->classMap = ComposerStaticInit60f578aa51b51bef400f4eb4bdb516b9::$classMap;
256
 
257
  }, null, ClassLoader::class);
258
  }