Skip to content

Commit

Permalink
fix: pass post_type as a second parameter to months_dropdown_results …
Browse files Browse the repository at this point in the history
…filter is fixed #710 (#711)

* fix: pass post_type as a second parameter to months_dropdown_results filter is fixed #710

* fix: use jQuery instead of $ to avoid undefined function error in vue files
  • Loading branch information
saimonh3 authored and sabbir1991 committed Dec 10, 2019
1 parent 848df15 commit 7bcffe6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ) {
Expand Down
2 changes: 1 addition & 1 deletion src/admin/pages/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export default {
this.subscribe.loading = true;
$.ajax({
jQuery.ajax({
url: action,
data: {
EMAIL: this.subscribe.email,
Expand Down
2 changes: 1 addition & 1 deletion src/admin/pages/Withdraw.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 7bcffe6

Please sign in to comment.