diff --git a/admin/class-reorder-post-within-categories-admin.php b/admin/class-reorder-post-within-categories-admin.php index a1852d0..499e40c 100755 --- a/admin/class-reorder-post-within-categories-admin.php +++ b/admin/class-reorder-post-within-categories-admin.php @@ -810,6 +810,7 @@ public function admin_dashboard_notice(){ /** * When a new post is created several actions are required * We need to inspect all associated taxonomies + * hooked on 'transition_post_status' * @param type $post_id */ public function save_post( $new_status, $old_status, $post){ diff --git a/public/class-reorder-post-within-categories-public.php b/public/class-reorder-post-within-categories-public.php index b358cfa..2c06f3f 100755 --- a/public/class-reorder-post-within-categories-public.php +++ b/public/class-reorder-post-within-categories-public.php @@ -259,8 +259,8 @@ static private function is_ranked($taxonomy, $term_id, &$type, $wp_query=null, $ $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']}"); - else debug_msg("RPWC2 SORT VALIDATION, overriding orderby: '{$wp_query->query_vars['orderby']}'"); + if( !$is_ranked ) debug_msg($wp_query->query_vars['orderby'], 'RPWC2 SORT VALIDATION ABORTED, for orderby: '); + else debug_msg($wp_query->query_vars['orderby'],'RPWC2 SORT VALIDATION, overriding orderby: '); } } if( $is_ranked && isset($wp_query) ){ /** @since 2.7.0 allow general override filter */