From b04dfafeacab4fb55c5f15348261f3f2a34fdcb5 Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 25 May 2010 18:55:51 +0000 Subject: [PATCH] Use a post type object label for edit_post_link's title attribute. props sc0ttkclark. git-svn-id: http://svn.automattic.com/wordpress/trunk@14901 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/link-template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 037af9eb4..ce366536a 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -827,7 +827,8 @@ function edit_post_link( $link = null, $before = '', $after = '', $id = 0 ) { if ( null === $link ) $link = __('Edit This'); - $link = '' . $link . ''; + $post_type_obj = get_post_type_object( $post->post_type ); + $link = '' . $link . ''; echo $before . apply_filters( 'edit_post_link', $link, $post->ID ) . $after; }