Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Product Query: fixes the taxonomies merge order.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpap committed Apr 1, 2022
1 parent 0de1d1d commit 6885fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StoreApi/Utilities/ProductQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function prepare_objects_query( $request ) {
'product_tag' => 'tag',
];

$taxonomies = array_merge( $default_taxonomies, $all_product_taxonomies );
$taxonomies = array_merge( $all_product_taxonomies, $default_taxonomies );

// Set tax_query for each passed arg.
foreach ( $taxonomies as $taxonomy => $key ) {
Expand Down

0 comments on commit 6885fd2

Please sign in to comment.