From 605476f2d03f18d60b4911fe31566120f3f30eb8 Mon Sep 17 00:00:00 2001 From: scribu Date: Thu, 14 Oct 2010 08:47:41 +0000 Subject: [PATCH] Rename get_edit_term_url() to get_edit_term_link() for consistency. See #9702 git-svn-id: http://svn.automattic.com/wordpress/trunk@15801 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/default-list-tables.php | 2 +- wp-includes/link-template.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/default-list-tables.php b/wp-admin/includes/default-list-tables.php index 355a96a98d..0fc632fc34 100644 --- a/wp-admin/includes/default-list-tables.php +++ b/wp-admin/includes/default-list-tables.php @@ -1654,7 +1654,7 @@ class WP_Terms_Table extends WP_List_Table { $pad = str_repeat( '— ', max( 0, $this->level ) ); $name = apply_filters( 'term_name', $pad . ' ' . $tag->name, $tag ); $qe_data = get_term( $tag->term_id, $taxonomy, OBJECT, 'edit' ); - $edit_link = get_edit_term_url( $tag->term_id, $taxonomy, $post_type ); + $edit_link = get_edit_term_link( $tag->term_id, $taxonomy, $post_type ); $out = '' . $name . '
'; diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index c5f2005318..7a2481f6fe 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -653,7 +653,7 @@ function get_tag_feed_link($tag_id, $feed = '') { * @return string */ function get_edit_tag_link( $tag_id, $taxonomy = 'post_tag' ) { - return apply_filters( 'get_edit_tag_link', get_edit_term_url( $tag_id, $taxonomy ) ); + return apply_filters( 'get_edit_tag_link', get_edit_term_link( $tag_id, $taxonomy ) ); } /** @@ -682,7 +682,7 @@ function edit_tag_link( $link = '', $before = '', $after = '', $tag = null ) { * @param string $object_type The object type * @return string */ -function get_edit_term_url( $term_id, $taxonomy, $object_type = '' ) { +function get_edit_term_link( $term_id, $taxonomy, $object_type = '' ) { $tax = get_taxonomy( $taxonomy ); if ( !current_user_can( $tax->cap->edit_terms ) ) return; @@ -700,7 +700,7 @@ function get_edit_term_url( $term_id, $taxonomy, $object_type = '' ) { $location = add_query_arg( $args, admin_url( 'edit-tags.php' ) ); - return apply_filters( 'get_edit_term_url', $location, $term_id, $taxonomy, $object_type ); + return apply_filters( 'get_edit_term_link', $location, $term_id, $taxonomy, $object_type ); } /** @@ -727,7 +727,7 @@ function edit_term_link( $link = '', $before = '', $after = '', $term = null, $e if ( empty( $link ) ) $link = __('Edit This'); - $link = '' . $link . ''; + $link = '' . $link . ''; $link = $before . apply_filters( 'edit_term_link', $link, $term->term_id ) . $after; if ( $echo )