[wp-trac] [WordPress Trac] #23964: Link url in Post Format Image doesn't link

WordPress Trac noreply at wordpress.org
Mon Apr 8 08:26:38 UTC 2013


#23964: Link url in Post Format Image doesn't link
--------------------------+--------------------
 Reporter:  RDall         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.6
Component:  Post Formats  |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+--------------------

Comment (by TravisHoffman):

 The difference between TwentyThirteen and SemPress is that SemPress
 displays the image using the_content() and TwentyThirteen uses
 the_post_format_image() which in turn calls get_post_format_image().  This
 function does not utilize the url from $meta.  When I attempted to check
 for a non empty url in the meta data and surround the img tag with an a
 tag it ended up messing up the styles and the image would justify to the
 left.

 I am new to submitting patches here and not sure what the best approach to
 fixing this would be.  Is modifying get_post_format_image going to mess
 other things up that use it? So I opted to not submit a patch for that
 solution.

 Is the correct course of action to correct the issue within the content-
 image.php file within the TwentyThirteen theme?  Seems the more sensible
 solution as it seems to be a theme specific issue.

 Comments?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23964#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list