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. Built from https://develop.svn.wordpress.org/trunk@38735 git-svn-id: http://core.svn.wordpress.org/trunk@38678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
eed325bbc2
commit
10323e5e22
|
@ -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 -->
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.7-alpha-38734';
|
||||
$wp_version = '4.7-alpha-38735';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue