Skip to content

Commit

Permalink
Change the depth attribute of wp_dropdown_categories from -1 to 0 to fix
Browse files Browse the repository at this point in the history
the hierarchical view
  • Loading branch information
skoldin committed Nov 4, 2015
1 parent bd7764a commit 25b1534
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion order-bender.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function primary_taxonomy_term_meta_box($post, $callback_args)
'id' => $this->unique_prefix . '_' . $taxonomy->name . '_primary_term',
'class' => $this->unique_prefix . '_primary_term',
'echo' => 1,
'depth' => -1,
'depth' => 0,
'hierarchical' => 1,
'show_option_none' => __( '— Select —' ),
'option_none_value' => '0',
Expand Down

0 comments on commit 25b1534

Please sign in to comment.