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; }