From 7efaa581d3958afb6f229f07437cfbbc193dc0f5 Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@14901 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 037af9eb4e..ce366536ad 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; }