WordPress.org

Make WordPress Core


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.