Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Dokan Filter Products by Attribute Widget Not Working for Multi-Word Attributes. #2033

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion includes/Rewrites.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
}

// Bell out for Vendor Stuff extensions
if ( ! is_super_admin( $store_user->ID ) && user_can( $store_user->ID, 'vendor_staff' ) ) {

Check warning on line 198 in includes/Rewrites.php

View workflow job for this annotation

GitHub Actions / Run PHPCS inspection

Found unknown capability "vendor_staff" in function call to user_can(). Please check the spelling of the capability. If this is a custom capability, please verify the capability is registered with WordPress via a call to WP_Role(s)->add_cap(). Custom capabilities can be made known to this sniff by setting the "custom_capabilities" property in the PHPCS ruleset.
return get_404_template();
}

Expand Down Expand Up @@ -259,7 +259,7 @@
return $template;
}

if ( ! current_user_can( 'dokan_edit_product' ) ) {

Check warning on line 262 in includes/Rewrites.php

View workflow job for this annotation

GitHub Actions / Run PHPCS inspection

Found unknown capability "dokan_edit_product" in function call to current_user_can(). Please check the spelling of the capability. If this is a custom capability, please verify the capability is registered with WordPress via a call to WP_Role(s)->add_cap(). Custom capabilities can be made known to this sniff by setting the "custom_capabilities" property in the PHPCS ruleset.
return $template;
}

Expand Down Expand Up @@ -330,7 +330,7 @@
foreach ( $attributes as $key => $attribute ) {
$tax_query[] = [
'taxonomy' => $key,
'field' => 'name',
'field' => 'slug',
'terms' => $attribute['terms'],
];
}
Expand Down
Loading