Permalink
Browse files

Remove second instance of 'the_title' hook.

  • Loading branch information...
1 parent a3645fe commit 46c4bc9310bb610ef60dcdd21328ed1cdd8708f3 @justintadlock committed Dec 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 extensions/get-the-image.php
@@ -414,7 +414,7 @@ function get_the_image_format( $args = array(), $image = false ) {
/* If $link_to_post is set to true, link the image to its post. */
if ( $link_to_post )
- $html = '<a href="' . get_permalink( $post_id ) . '" title="' . esc_attr( apply_filters( 'the_title', get_post_field( 'post_title', $post_id ) ) ) . '">' . $html . '</a>';
+ $html = '<a href="' . get_permalink( $post_id ) . '" title="' . esc_attr( get_post_field( 'post_title', $post_id ) ) . '">' . $html . '</a>';
/* If there is a $post_thumbnail_id, apply the WP filters normally associated with get_the_post_thumbnail(). */
if ( !empty( $image['post_thumbnail_id'] ) )

0 comments on commit 46c4bc9

Please sign in to comment.