Changeset 38735
- Timestamp:
- 10/05/2016 09:25:50 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-tags.php
r38725 r38735 552 552 ?> 553 553 </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 } ?> 574 555 575 556 </div>
Note: See TracChangeset
for help on using the changeset viewer.