Skip to content

Commit

Permalink
2.12.4rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
aurovrata committed Feb 4, 2022
1 parent a47f3bd commit da31d91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ $zero_based_rank = array_search($post_ID, $ranking);

== Changelog ==
= 2.12.4 =
* handle multi orderb directive.
* handle multi orderby directive.
= 2.12.3 =
* fix slider range reload bug.
= 2.12.2 =
Expand Down
3 changes: 2 additions & 1 deletion public/class-reorder-post-within-categories-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,8 @@ static public function get_adjacent_post($post_id, $term_id, $post_type, $taxono
public function override_woocommerce_products($override, $wp_query, $taxonomy, $term_id, $type){
if(!is_plugin_active('woocommerce/woocommerce.php')) return $override; /** @since 2.12.2*/
else{
$ob = explode(' ', trim($wp_query->query_vars['orderby']));
$ob = $wp_query->query_vars['orderby'];
if(is_string($ob)) $ob = explode(' ', trim($ob)); /** @since 2.12.4*/
return $type==='product'
&& !empty(array_intersect(array('menu_order','meta_value'), $ob));
}
Expand Down

0 comments on commit da31d91

Please sign in to comment.