Changeset 10554
- Timestamp:
- 02/11/2009 11:41:29 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-tags.php
r10348 r10554 245 245 <?php 246 246 if ( $can_manage ) 247 wp_tag_cloud(array(' link' => 'edit'));247 wp_tag_cloud(array('taxonomy' => $taxonomy, 'link' => 'edit')); 248 248 else 249 wp_tag_cloud( );249 wp_tag_cloud(array('taxonomy' => $taxonomy)); 250 250 ?> 251 251 </div> -
trunk/wp-includes/category-template.php
r10316 r10554 561 561 'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 45, 562 562 'format' => 'flat', 'orderby' => 'name', 'order' => 'ASC', 563 'exclude' => '', 'include' => '', 'link' => 'view' 563 'exclude' => '', 'include' => '', 'link' => 'view', 'taxonomy' => 'post_tag' 564 564 ); 565 565 $args = wp_parse_args( $args, $defaults ); 566 566 567 $tags = get_t ags(array_merge( $args, array( 'orderby' => 'count', 'order' => 'DESC' ) ) ); // Always query top tags567 $tags = get_terms( $args['taxonomy'], array_merge( $args, array( 'orderby' => 'count', 'order' => 'DESC' ) ) ); // Always query top tags 568 568 569 569 if ( empty( $tags ) ) … … 572 572 foreach ( $tags as $key => $tag ) { 573 573 if ( 'edit' == $args['link'] ) 574 $link = get_edit_tag_link( $tag->term_id );574 $link = get_edit_tag_link( $tag->term_id, $args['taxonomy'] ); 575 575 else 576 $link = get_t ag_link( $tag->term_id);576 $link = get_term_link( $tag->term_id, $args['taxonomy'] ); 577 577 if ( is_wp_error( $link ) ) 578 578 return false; -
trunk/wp-includes/link-template.php
r10525 r10554 576 576 */ 577 577 function get_edit_tag_link( $tag_id = 0, $taxonomy = 'post_tag' ) { 578 $tag = get_term($tag_id, 'post_tag');578 $tag = get_term($tag_id, $taxonomy); 579 579 580 580 if ( !current_user_can('manage_categories') )
Note: See TracChangeset
for help on using the changeset viewer.