From f311accfd0eb85b2df673a0c9b85eecd75b6e9e6 Mon Sep 17 00:00:00 2001 From: saimonh3 Date: Tue, 10 Dec 2019 08:49:53 +0600 Subject: [PATCH 1/2] fix: pass post_type as a second parameter to months_dropdown_results filter is fixed #710 --- includes/functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index b5225b17a4..162986a59b 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -2240,8 +2240,7 @@ function dokan_product_listing_filter_months_dropdown( $user_id ) { * * @param object $months The months drop-down query results. */ - $months = apply_filters( 'months_dropdown_results', $months ); - + $months = apply_filters( 'months_dropdown_results', $months, 'product' ); $month_count = count( $months ); if ( ! $month_count || ( 1 == $month_count && 0 == $months[0]->month ) ) { From 290105d6d9bae4406e6db206a588e3773c23a24e Mon Sep 17 00:00:00 2001 From: saimonh3 Date: Tue, 10 Dec 2019 09:18:22 +0600 Subject: [PATCH 2/2] fix: use jQuery instead of $ to avoid undefined function error in vue files --- src/admin/pages/Dashboard.vue | 2 +- src/admin/pages/Withdraw.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/admin/pages/Dashboard.vue b/src/admin/pages/Dashboard.vue index c78c1290af..4a7c6203cc 100644 --- a/src/admin/pages/Dashboard.vue +++ b/src/admin/pages/Dashboard.vue @@ -187,7 +187,7 @@ export default { this.subscribe.loading = true; - $.ajax({ + jQuery.ajax({ url: action, data: { EMAIL: this.subscribe.email, diff --git a/src/admin/pages/Withdraw.vue b/src/admin/pages/Withdraw.vue index 3b82023da3..875ee74f50 100644 --- a/src/admin/pages/Withdraw.vue +++ b/src/admin/pages/Withdraw.vue @@ -371,7 +371,7 @@ export default { if ( 'paypal' === action ) { let ids = items.join(","); - $.post(ajaxurl, { + jQuery.post(ajaxurl, { 'dokan_withdraw_bulk': 'paypal', 'id': ids, 'action': 'withdraw_ajax_submission',