From 65579d10bf5ff3c6dbccfa7a59a3297171c2a7c3 Mon Sep 17 00:00:00 2001 From: aurovrata Date: Wed, 25 Nov 2020 12:53:37 +0530 Subject: [PATCH] self fix --- public/class-reorder-post-within-categories-public.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/class-reorder-post-within-categories-public.php b/public/class-reorder-post-within-categories-public.php index bcb3634..6c3d9f7 100755 --- a/public/class-reorder-post-within-categories-public.php +++ b/public/class-reorder-post-within-categories-public.php @@ -236,11 +236,11 @@ static private function is_ranked($taxonomy, $term_id, &$type, $wp_query=null, $ if($print_dbg) debug_msg("RPWC2 SORT VALIDATION, found post_type '{$type}' / taxonomy '{$taxonomy}'({$term_id})"); $is_ranked=false; - if( isset($tax_options[$type]) && isset($tax_options[$type][$term_id]) ){ - $is_ranked = $tax_options[$type][$term_id]['order']; + if( isset(self::$tax_options[$type]) && isset(self::$tax_options[$type][$term_id]) ){ + $is_ranked = self::$tax_options[$type][$term_id]['order']; /** @since 2.5.9 allow custom ranking 'orderby' override. */ if( $is_ranked && isset($wp_query) && !empty($wp_query->query_vars['orderby']) ){ - $override = $tax_options[$type][$term_id]['override']; + $override = self::$tax_options[$type][$term_id]['override']; $is_ranked = apply_filters('rpwc2_allow_custom_sort_orderby_override', $override, $wp_query, $taxonomy, $term_id, $type); if($print_dbg){ if( !$is_ranked ) debug_msg("RPWC2 SORT VALIDATION ABORTED, for orderby: {$wp_query->query_vars['orderby']}");