From a0686cacd1400b148980d22d0afc3cf95e6e1638 Mon Sep 17 00:00:00 2001 From: Helen Hou-Sandi Date: Wed, 5 Oct 2016 21:25:50 +0000 Subject: [PATCH] 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 --- src/wp-admin/edit-tags.php | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/wp-admin/edit-tags.php b/src/wp-admin/edit-tags.php index c22712e333..2471e626a8 100644 --- a/src/wp-admin/edit-tags.php +++ b/src/wp-admin/edit-tags.php @@ -551,26 +551,7 @@ if ( 'category' == $taxonomy ) { do_action( "{$taxonomy}_add_form", $taxonomy ); ?> -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 ) : - ?> -
-

labels->popular_items; ?>

- -
- +