Changeset 13213 for trunk/wp-includes/link-template.php
- Timestamp:
- 02/19/2010 09:54:18 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/link-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r13212 r13213 620 620 */ 621 621 function get_edit_tag_link( $tag_id = 0, $taxonomy = 'post_tag' ) { 622 global $post_type; 622 623 $tax = get_taxonomy($taxonomy); 623 624 if ( !current_user_can($tax->edit_cap) ) 624 625 return; 625 626 626 627 $tag = get_term($tag_id, $taxonomy); 627 628 628 $location = admin_url('edit-tags.php?action=edit&taxonomy=' . $taxonomy . '& tag_ID=' . $tag->term_id);629 $location = admin_url('edit-tags.php?action=edit&taxonomy=' . $taxonomy . '&' . (!empty($post_type) ? 'post_type=' . $post_type .'&' : '') .'tag_ID=' . $tag->term_id); 629 630 return apply_filters( 'get_edit_tag_link', $location ); 630 631 }
Note: See TracChangeset
for help on using the changeset viewer.