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/facets tax query #2560

Merged
merged 12 commits into from
Feb 22, 2022
Prev Previous commit
Next Next commit
Fix linting
  • Loading branch information
oscarssanchez committed Feb 21, 2022
commit ca5063c9b4d0696c1a43062f1e1275c9578a6152
2 changes: 1 addition & 1 deletion includes/classes/Feature/Facets/Facets.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ public function get_selected() {

foreach ( $_GET as $key => $value ) { // phpcs:ignore WordPress.Security.NonceVerification
if ( 0 === strpos( $key, $filter_name ) ) {
$taxonomy = str_replace( $filter_name , '', $key );
$taxonomy = str_replace( $filter_name, '', $key );

$filters['taxonomies'][ $taxonomy ] = array(
'terms' => array_fill_keys( array_map( 'trim', explode( ',', trim( $value, ',' ) ) ), true ),
Expand Down