Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurovrata V committed Apr 30, 2021
1 parent 8466a79 commit 0533105
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions admin/class-reorder-post-within-categories-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down
4 changes: 2 additions & 2 deletions public/class-reorder-post-within-categories-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 0533105

Please sign in to comment.