Taxonomy: Remove the popular tag cloud from edit-tags.php.

Sorting by count (which wasn't possible at the time the tag cloud was introduced) is more effective, though we should likely make count sort by `DESC` initially rather than `ASC`.

props ramiy.
fixes #36964.


git-svn-id: https://develop.svn.wordpress.org/trunk@38735 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Helen Hou-Sandi 2016-10-05 21:25:50 +00:00
parent 5d1f571508
commit a0686cacd1

View File

@ -551,26 +551,7 @@ if ( 'category' == $taxonomy ) {
do_action( "{$taxonomy}_add_form", $taxonomy );
?>
</form></div>
<?php }
if ( ! is_null( $tax->labels->popular_items ) ) {
if ( current_user_can( $tax->cap->edit_terms ) ) {
$tag_cloud = wp_tag_cloud( array( 'taxonomy' => $taxonomy, 'post_type' => $post_type, 'echo' => false, 'link' => 'edit' ) );
} else {
$tag_cloud = wp_tag_cloud( array( 'taxonomy' => $taxonomy, 'echo' => false ) );
}
if ( $tag_cloud ) :
?>
<div class="tagcloud">
<h2><?php echo $tax->labels->popular_items; ?></h2>
<?php echo $tag_cloud; unset( $tag_cloud ); ?>
</div>
<?php
endif;
}
?>
<?php } ?>
</div>
</div><!-- /col-left -->