Skip to content

Commit

Permalink
Merge branch 'release/3.7.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
nurul-umbhiya committed Oct 27, 2022
2 parents ace5c09 + 90990c5 commit c0896c3
Show file tree
Hide file tree
Showing 8 changed files with 67 additions and 45 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
**WC requires at least:** 5.0.0
**WC tested up to:** 7.0.0
**Requires PHP:** 7.0
**Stable tag:** 3.7.2
**Stable tag:** 3.7.3
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -313,13 +313,17 @@ A. Just install and activate the PRO version without deleting the free plugin. A

## Changelog ##

### v3.7.3 ( Oct 27, 2022 ) ###

- **fix:** Fixed a fatal error due to a function moved from dokan pro

### v3.7.2 ( Oct 27, 2022 ) ###

**new:** Added a new filter hooked named `dokan_rest_api_store_collection_params` for StoreController request parameters
**new:** Introduced `dokanVendorFilterSectionStart` and `DokanGetVendorArgs` js filter hooks
**fix:** [AdminCommission] - Percentage Commission does not support "comma" as decimal separator under Dokan admin settings `Selling Options` page
**fix:** [Products] Product author is assigned to the shop manager when the shop manager publishes a product drafted by the admin.
**fix:** Spaces between paragraphs are too large under the store terms and condition page.
- **new:** Added a new filter hooked named `dokan_rest_api_store_collection_params` for StoreController request parameters
- **new:** Introduced `dokanVendorFilterSectionStart` and `DokanGetVendorArgs` js filter hooks
- **fix:** [AdminCommission] - Percentage Commission does not support "comma" as decimal separator under Dokan admin settings `Selling Options` page
- **fix:** [Products] Product author is assigned to the shop manager when the shop manager publishes a product drafted by the admin.
- **fix:** Spaces between paragraphs are too large under the store terms and condition page.

### v3.7.1 ( Oct 11, 2022 ) ###

Expand Down
4 changes: 2 additions & 2 deletions dokan.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Dokan
* Plugin URI: https://wordpress.org/plugins/dokan-lite/
* Description: An e-commerce marketplace plugin for WordPress. Powered by WooCommerce and weDevs.
* Version: 3.7.2
* Version: 3.7.3
* Author: weDevs
* Author URI: https://wedevs.com/
* Text Domain: dokan-lite
Expand Down Expand Up @@ -56,7 +56,7 @@ final class WeDevs_Dokan {
*
* @var string
*/
public $version = '3.7.2';
public $version = '3.7.3';

/**
* Instance of self
Expand Down
44 changes: 23 additions & 21 deletions includes/Admin/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,27 +49,29 @@ function dokan_override_product_author( $product, $seller_id ) {
do_action( 'dokan_after_override_product_author', $product, $seller_id );
}

/**
* Overrides author for products with variations.
*
* @since 3.7.1
*
* @param WC_Product $product
* @param int $seller_id
*
* @return void
*/
function dokan_override_author_for_variations( $product, $seller_id ) {
if ( 'variable' === $product->get_type() || 'variable-subscription' === $product->get_type() ) {
$variations = $product->get_children();

foreach ( $variations as $variation_id ) {
wp_update_post(
[
'ID' => $variation_id,
'post_author' => $seller_id,
]
);
if ( ! function_exists( 'dokan_override_author_for_variations' ) ) {
/**
* Overrides author for products with variations.
*
* @since 3.7.1
*
* @param WC_Product $product
* @param int $seller_id
*
* @return void
*/
function dokan_override_author_for_variations( $product, $seller_id ) {
if ( 'variable' === $product->get_type() || 'variable-subscription' === $product->get_type() ) {
$variations = $product->get_children();

foreach ( $variations as $variation_id ) {
wp_update_post(
[
'ID' => $variation_id,
'post_author' => $seller_id,
]
);
}
}
}
}
Expand Down
16 changes: 8 additions & 8 deletions languages/dokan-lite.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# This file is distributed under the GPL2.
msgid ""
msgstr ""
"Project-Id-Version: Dokan 3.7.2\n"
"Project-Id-Version: Dokan 3.7.3\n"
"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
"POT-Creation-Date: 2022-10-27 04:52:26+00:00\n"
"POT-Creation-Date: 2022-10-27 08:37:52+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down Expand Up @@ -1476,30 +1476,30 @@ msgstr ""
msgid "This vendor will be marked as a featured vendor."
msgstr ""

#: includes/Admin/functions.php:239 includes/Admin/functions.php:506
#: includes/Admin/functions.php:241 includes/Admin/functions.php:508
#: includes/REST/AdminReportController.php:140
msgid "Total Sales"
msgstr ""

#: includes/Admin/functions.php:246 includes/Admin/functions.php:513
#: includes/Admin/functions.php:248 includes/Admin/functions.php:515
msgid "Total: "
msgstr ""

#: includes/Admin/functions.php:249 includes/Admin/functions.php:516
#: includes/Admin/functions.php:251 includes/Admin/functions.php:518
#: includes/REST/AdminReportController.php:148 includes/reports.php:365
msgid "Number of orders"
msgstr ""

#: includes/Admin/functions.php:256 includes/Admin/functions.php:523
#: includes/Admin/functions.php:258 includes/Admin/functions.php:525
msgid "sales"
msgstr ""

#: includes/Admin/functions.php:259 includes/Admin/functions.php:526
#: includes/Admin/functions.php:261 includes/Admin/functions.php:528
#: includes/REST/AdminReportController.php:155
msgid "Commision"
msgstr ""

#: includes/Admin/functions.php:266 includes/Admin/functions.php:533
#: includes/Admin/functions.php:268 includes/Admin/functions.php:535
msgid "Commision: "
msgstr ""

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dokan",
"version": "3.7.2",
"version": "3.7.3",
"description": "A WordPress marketplace plugin",
"author": "weDevs",
"license": "GPL",
Expand Down
16 changes: 10 additions & 6 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Tested up to: 6.0.3
WC requires at least: 5.0.0
WC tested up to: 7.0.0
Requires PHP: 7.0
Stable tag: 3.7.2
Stable tag: 3.7.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -313,13 +313,17 @@ A. Just install and activate the PRO version without deleting the free plugin. A

== Changelog ==

= v3.7.3 ( Oct 27, 2022 ) =

- **fix:** Fixed a fatal error due to a function moved from dokan pro

= v3.7.2 ( Oct 27, 2022 ) =

**new:** Added a new filter hooked named `dokan_rest_api_store_collection_params` for StoreController request parameters
**new:** Introduced `dokanVendorFilterSectionStart` and `DokanGetVendorArgs` js filter hooks
**fix:** [AdminCommission] - Percentage Commission does not support "comma" as decimal separator under Dokan admin settings `Selling Options` page
**fix:** [Products] Product author is assigned to the shop manager when the shop manager publishes a product drafted by the admin.
**fix:** Spaces between paragraphs are too large under the store terms and condition page.
- **new:** Added a new filter hooked named `dokan_rest_api_store_collection_params` for StoreController request parameters
- **new:** Introduced `dokanVendorFilterSectionStart` and `DokanGetVendorArgs` js filter hooks
- **fix:** [AdminCommission] - Percentage Commission does not support "comma" as decimal separator under Dokan admin settings `Selling Options` page
- **fix:** [Products] Product author is assigned to the shop manager when the shop manager publishes a product drafted by the admin.
- **fix:** Spaces between paragraphs are too large under the store terms and condition page.

= v3.7.1 ( Oct 11, 2022 ) =

Expand Down
12 changes: 12 additions & 0 deletions templates/whats-new.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
* When you are adding new version please follow this sequence for changes: New Feature, New, Improvement, Fix...
*/
$changelog = [
[
'version' => 'Version 3.7.3',
'released' => '2022-10-27',
'changes' => [
'New' => [
[
'title' => 'Fixed a fatal error due to a function moved from dokan pro',
'description' => '',
],
],
],
],
[
'version' => 'Version 3.7.2',
'released' => '2022-10-27',
Expand Down

0 comments on commit c0896c3

Please sign in to comment.