Version Description
Download this release
Release Info
Developer | tareq1988 |
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.
|
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.
|
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 |
-
|
48 |
|
49 |
do_action( 'dokan_after_override_product_author', $product, $seller_id );
|
50 |
}
|
51 |
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
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 |
-
|
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.
|
6 |
"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
|
7 |
-
"POT-Creation-Date: 2022-10-27
|
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:
|
1480 |
#: includes/REST/AdminReportController.php:140
|
1481 |
msgid "Total Sales"
|
1482 |
msgstr ""
|
1483 |
|
1484 |
-
#: includes/Admin/functions.php:
|
1485 |
msgid "Total: "
|
1486 |
msgstr ""
|
1487 |
|
1488 |
-
#: includes/Admin/functions.php:
|
1489 |
#: includes/REST/AdminReportController.php:148 includes/reports.php:365
|
1490 |
msgid "Number of orders"
|
1491 |
msgstr ""
|
1492 |
|
1493 |
-
#: includes/Admin/functions.php:
|
1494 |
msgid "sales"
|
1495 |
msgstr ""
|
1496 |
|
1497 |
-
#: includes/Admin/functions.php:
|
1498 |
#: includes/REST/AdminReportController.php:155
|
1499 |
msgid "Commision"
|
1500 |
msgstr ""
|
1501 |
|
1502 |
-
#: includes/Admin/functions.php:
|
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.
|
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
|
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
|
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('
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
-
spl_autoload_unregister(array('
|
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\
|
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\
|
57 |
} else {
|
58 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
59 |
}
|
60 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
61 |
-
|
62 |
}
|
63 |
|
64 |
return $loader;
|
@@ -70,7 +70,7 @@ class ComposerAutoloaderInit443eb839fe1c1abac217e8c27e8e82cd
|
|
70 |
* @param string $file
|
71 |
* @return void
|
72 |
*/
|
73 |
-
function
|
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
|
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 =
|
254 |
-
$loader->prefixDirsPsr4 =
|
255 |
-
$loader->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 |
}
|