Changeset 15801
- Timestamp:
- 10/14/2010 08:47:41 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/default-list-tables.php
r15800 r15801 1655 1655 $name = apply_filters( 'term_name', $pad . ' ' . $tag->name, $tag ); 1656 1656 $qe_data = get_term( $tag->term_id, $taxonomy, OBJECT, 'edit' ); 1657 $edit_link = get_edit_term_ url( $tag->term_id, $taxonomy, $post_type );1657 $edit_link = get_edit_term_link( $tag->term_id, $taxonomy, $post_type ); 1658 1658 1659 1659 $out = '<strong><a class="row-title" href="' . $edit_link . '" title="' . esc_attr( sprintf( __( 'Edit “%s”' ), $name ) ) . '">' . $name . '</a></strong><br />'; -
trunk/wp-includes/link-template.php
r15800 r15801 654 654 */ 655 655 function get_edit_tag_link( $tag_id, $taxonomy = 'post_tag' ) { 656 return apply_filters( 'get_edit_tag_link', get_edit_term_ url( $tag_id, $taxonomy ) );656 return apply_filters( 'get_edit_tag_link', get_edit_term_link( $tag_id, $taxonomy ) ); 657 657 } 658 658 … … 683 683 * @return string 684 684 */ 685 function get_edit_term_ url( $term_id, $taxonomy, $object_type = '' ) {685 function get_edit_term_link( $term_id, $taxonomy, $object_type = '' ) { 686 686 $tax = get_taxonomy( $taxonomy ); 687 687 if ( !current_user_can( $tax->cap->edit_terms ) ) … … 701 701 $location = add_query_arg( $args, admin_url( 'edit-tags.php' ) ); 702 702 703 return apply_filters( 'get_edit_term_ url', $location, $term_id, $taxonomy, $object_type );703 return apply_filters( 'get_edit_term_link', $location, $term_id, $taxonomy, $object_type ); 704 704 } 705 705 … … 728 728 $link = __('Edit This'); 729 729 730 $link = '<a href="' . get_edit_term_ url( $term->term_id, $term->taxonomy ) . '" title="' . $link . '">' . $link . '</a>';730 $link = '<a href="' . get_edit_term_link( $term->term_id, $term->taxonomy ) . '" title="' . $link . '">' . $link . '</a>'; 731 731 $link = $before . apply_filters( 'edit_term_link', $link, $term->term_id ) . $after; 732 732
Note: See TracChangeset
for help on using the changeset viewer.