WordPress.org

Make WordPress Core

Changeset 15801


Ignore:
Timestamp:
10/14/10 08:47:41 (4 years ago)
Author:
scribu
Message:

Rename get_edit_term_url() to get_edit_term_link() for consistency. See #9702

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/default-list-tables.php

    r15800 r15801  
    16551655        $name = apply_filters( 'term_name', $pad . ' ' . $tag->name, $tag ); 
    16561656        $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 ); 
    16581658 
    16591659        $out = '<strong><a class="row-title" href="' . $edit_link . '" title="' . esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $name ) ) . '">' . $name . '</a></strong><br />'; 
  • trunk/wp-includes/link-template.php

    r15800 r15801  
    654654 */ 
    655655function 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 ) ); 
    657657} 
    658658 
     
    683683 * @return string 
    684684 */ 
    685 function get_edit_term_url( $term_id, $taxonomy, $object_type = '' ) { 
     685function get_edit_term_link( $term_id, $taxonomy, $object_type = '' ) { 
    686686    $tax = get_taxonomy( $taxonomy ); 
    687687    if ( !current_user_can( $tax->cap->edit_terms ) ) 
     
    701701    $location = add_query_arg( $args, admin_url( 'edit-tags.php' ) ); 
    702702 
    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 ); 
    704704} 
    705705 
     
    728728        $link = __('Edit This'); 
    729729 
    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>'; 
    731731    $link = $before . apply_filters( 'edit_term_link', $link, $term->term_id ) . $after; 
    732732 
Note: See TracChangeset for help on using the changeset viewer.