</ul>
</div>
<div id="<?php
echo $tax_name; ?>-all" class="tabs-panel">
<?php
$name =
( 'category' ===
$tax_name ) ? 'post_category' : 'tax_input[' .
$tax_name . ']';
// Allows for an empty term set to be sent. 0 is an invalid term ID and will be ignored by empty() checks.
echo "<input type='hidden' name='{
$name}[]' value='0' />";
?>
<ul id="<?php
echo $tax_name; ?>checklist" data-wp-lists="list:<?php
echo $tax_name; ?>" class="categorychecklist form-no-clear">
<?php
wp_terms_checklist( $post->ID,
array
( 'taxonomy' =>
$tax_name,
'popular_cats' =>
$popular_ids,
) );
?>
</ul>
</div>
<?php
if ( current_user_can( $taxonomy->cap->edit_terms
) ) : ?>
<div id="<?php
echo $tax_name; ?>-adder" class="wp-hidden-children">
<a id="