| @@ -162,14 +162,13 @@ | ||
| 162 | 162 | * @param array $args Query args to filter. |
| 163 | 163 | * @param string $collection Collection being queried: `products` or `variations`. Any other |
| 164 | 164 | * value returns the args untouched. |
| 165 | 165 | * @param null|string $scope Visibility scope: `default` or a store id. Null means default. |
| 166 | - * @param null|string $type Explicit lane type, or null for the collection default. | |
| 167 | 166 | * |
| 168 | 167 | * @return array |
| 169 | 168 | */ |
| 170 | - public function apply_to_wp_query_args( array $args, string $collection, ?string $scope = null, ?string $type = null ): array { | |
| 171 | - $type = $type ?? self::collection_type( $collection ); | |
| 169 | + public function apply_to_wp_query_args( array $args, string $collection, ?string $scope = null ): array { | |
| 170 | + $type = self::collection_type( $collection ); | |
| 172 | 171 | if ( null === $type ) { |
| 173 | 172 | return $args; |
| 174 | 173 | } |
| 175 | 174 | |