WordPress.org

Make WordPress Core

Changeset 38735


Ignore:
Timestamp:
10/05/2016 09:25:50 PM (4 years ago)
Author:
helen
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-tags.php

    r38725 r38735  
    552552?>
    553553</form></div>
    554 <?php }
    555 
    556 if ( ! is_null( $tax->labels->popular_items ) ) {
    557     if ( current_user_can( $tax->cap->edit_terms ) ) {
    558         $tag_cloud = wp_tag_cloud( array( 'taxonomy' => $taxonomy, 'post_type' => $post_type, 'echo' => false, 'link' => 'edit' ) );
    559     } else {
    560         $tag_cloud = wp_tag_cloud( array( 'taxonomy' => $taxonomy, 'echo' => false ) );
    561     }
    562 
    563     if ( $tag_cloud ) :
    564     ?>
    565 <div class="tagcloud">
    566 <h2><?php echo $tax->labels->popular_items; ?></h2>
    567 <?php echo $tag_cloud; unset( $tag_cloud ); ?>
    568 </div>
    569 <?php
    570     endif;
    571 }
    572 
    573 ?>
     554<?php } ?>
    574555
    575556</div>
Note: See TracChangeset for help on using the changeset viewer.