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

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

Code changes from version 3.0.6 to 3.0.7

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.0.6
7
  Author: weDevs
8
  Author URI: https://wedevs.com/
9
  Text Domain: dokan-lite
@@ -54,7 +54,7 @@ final class WeDevs_Dokan {
54
  *
55
  * @var string
56
  */
57
- public $version = '3.0.6';
58
 
59
  /**
60
  * 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.0.7
7
  Author: weDevs
8
  Author URI: https://wedevs.com/
9
  Text Domain: dokan-lite
54
  *
55
  * @var string
56
  */
57
+ public $version = '3.0.7';
58
 
59
  /**
60
  * Instance of self
includes/Vendor/UserSwitch.php CHANGED
@@ -202,6 +202,10 @@ class UserSwitch {
202
  * @return html
203
  */
204
  public function show_user_switching_message() {
 
 
 
 
205
  $user = wp_get_current_user();
206
  $old_user = user_switching::get_old_user();
207
 
202
  * @return html
203
  */
204
  public function show_user_switching_message() {
205
+ if ( ! class_exists( 'user_switching' ) ) {
206
+ return;
207
+ }
208
+
209
  $user = wp_get_current_user();
210
  $old_user = user_switching::get_old_user();
211
 
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.0.6\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
- "POT-Creation-Date: 2020-07-22 18:22:43+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -3943,17 +3943,17 @@ msgstr ""
3943
  msgid "Install Now"
3944
  msgstr ""
3945
 
3946
- #: includes/Vendor/UserSwitch.php:241 includes/Vendor/UserSwitch.php:291
3947
  #. Translators: 1: user display name; 2: username;
3948
  msgid "Switched to %1$s (%2$s)."
3949
  msgstr ""
3950
 
3951
- #: includes/Vendor/UserSwitch.php:255
3952
  #. Translators: 1: user display name; 2: username;
3953
  msgid "Switch back to %1$s (%2$s)"
3954
  msgstr ""
3955
 
3956
- #: includes/Vendor/UserSwitch.php:284
3957
  #. Translators: 1: user display name; 2: username;
3958
  msgid "Switched back to %1$s (%2$s)."
3959
  msgstr ""
2
  # This file is distributed under the GPL2.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Dokan 3.0.7\n"
6
  "Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
7
+ "POT-Creation-Date: 2020-07-23 02:40:23+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
3943
  msgid "Install Now"
3944
  msgstr ""
3945
 
3946
+ #: includes/Vendor/UserSwitch.php:245 includes/Vendor/UserSwitch.php:295
3947
  #. Translators: 1: user display name; 2: username;
3948
  msgid "Switched to %1$s (%2$s)."
3949
  msgstr ""
3950
 
3951
+ #: includes/Vendor/UserSwitch.php:259
3952
  #. Translators: 1: user display name; 2: username;
3953
  msgid "Switch back to %1$s (%2$s)"
3954
  msgstr ""
3955
 
3956
+ #: includes/Vendor/UserSwitch.php:288
3957
  #. Translators: 1: user display name; 2: username;
3958
  msgid "Switched back to %1$s (%2$s)."
3959
  msgstr ""
package.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "dokan",
3
- "version": "3.0.6",
4
  "description": "A WordPress marketplace plugin",
5
  "author": "weDevs",
6
  "license": "GPL",
1
  {
2
  "name": "dokan",
3
+ "version": "3.0.7",
4
  "description": "A WordPress marketplace plugin",
5
  "author": "weDevs",
6
  "license": "GPL",
readme.txt CHANGED
@@ -7,7 +7,7 @@ Tested up to: 5.4.2
7
  WC requires at least: 3.0
8
  WC tested up to: 4.3.1
9
  Requires PHP: 5.6
10
- Stable tag: 3.0.6
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -291,6 +291,10 @@ A. Just install and activate the PRO version without deleting the free plugin. A
291
 
292
  == Changelog ==
293
 
 
 
 
 
294
  = v3.0.6 (July 23, 2020) =
295
 
296
  - **Feat:** Vendor user switching (User Switching plugin support)
7
  WC requires at least: 3.0
8
  WC tested up to: 4.3.1
9
  Requires PHP: 5.6
10
+ Stable tag: 3.0.7
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
291
 
292
  == Changelog ==
293
 
294
+ = v3.0.7 (July 23, 2020) =
295
+
296
+ - **Fix:** Showing fatal error for user switching
297
+
298
  = v3.0.6 (July 23, 2020) =
299
 
300
  - **Feat:** Vendor user switching (User Switching plugin support)
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitd45b4534a7aa6dcb2c80e73eb85efc90::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit81025a775b3ffe59fabb3a75969d3844::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitd45b4534a7aa6dcb2c80e73eb85efc90
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInitd45b4534a7aa6dcb2c80e73eb85efc90
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInitd45b4534a7aa6dcb2c80e73eb85efc90', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInitd45b4534a7aa6dcb2c80e73eb85efc90', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInitd45b4534a7aa6dcb2c80e73eb85efc90::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit81025a775b3ffe59fabb3a75969d3844
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInit81025a775b3ffe59fabb3a75969d3844', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInit81025a775b3ffe59fabb3a75969d3844', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInit81025a775b3ffe59fabb3a75969d3844::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInitd45b4534a7aa6dcb2c80e73eb85efc90
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'W' =>
@@ -165,9 +165,9 @@ class ComposerStaticInitd45b4534a7aa6dcb2c80e73eb85efc90
165
  public static function getInitializer(ClassLoader $loader)
166
  {
167
  return \Closure::bind(function () use ($loader) {
168
- $loader->prefixLengthsPsr4 = ComposerStaticInitd45b4534a7aa6dcb2c80e73eb85efc90::$prefixLengthsPsr4;
169
- $loader->prefixDirsPsr4 = ComposerStaticInitd45b4534a7aa6dcb2c80e73eb85efc90::$prefixDirsPsr4;
170
- $loader->classMap = ComposerStaticInitd45b4534a7aa6dcb2c80e73eb85efc90::$classMap;
171
 
172
  }, null, ClassLoader::class);
173
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit81025a775b3ffe59fabb3a75969d3844
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'W' =>
165
  public static function getInitializer(ClassLoader $loader)
166
  {
167
  return \Closure::bind(function () use ($loader) {
168
+ $loader->prefixLengthsPsr4 = ComposerStaticInit81025a775b3ffe59fabb3a75969d3844::$prefixLengthsPsr4;
169
+ $loader->prefixDirsPsr4 = ComposerStaticInit81025a775b3ffe59fabb3a75969d3844::$prefixDirsPsr4;
170
+ $loader->classMap = ComposerStaticInit81025a775b3ffe59fabb3a75969d3844::$classMap;
171
 
172
  }, null, ClassLoader::class);
173
  }