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

WordPress Trac noreply at wordpress.org
Wed Apr 17 23:17:03 UTC 2013


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

Comment (by obenland):

 I have a hard time creating a repeatable output for the selector to fit.

 The image selectable in the "Select / Upload Image" box differs in size,
 based on what has previously been set in the Media modal for the main
 content. Also, if that image happens to have had a URL set with it, the
 custom URL doesn't work. Example output in my testing:

 {{{
 <a href="http://twitter.com/obenland"><a href="http://localhost:8888/trunk
 /wp-content/uploads/2013/02/cropped-MCM_4677.jpeg"><img
 src="http://localhost:8888/trunk/wp-content/uploads/2013/02/cropped-
 MCM_4677.jpeg" width="1500" height="375" alt="cropped-MCM_4677.jpeg" class
 ="wp-image-1140 alignright size-full" /></a></a>

 }}}

 Or as a thumbnail with caption:

 {{{
 <a href="http://twitter.com/obenland"><div id="attachment_1082" class="wp-
 caption alignright" style="width: 160px"><a
 href="http://localhost:8888/trunk/wp-
 content/uploads/2013/03/13-MCM_0885.jpeg"><img
 src="http://localhost:8888/trunk/wp-
 content/uploads/2013/03/13-MCM_0885.jpeg" width="150" height="150"
 alt="with caption" class="wp-image-1082 size-thumbnail" /></a><p class
 ="wp-caption-text">with caption</p></div></a>

 }}}

 @wonderboymusic: Is it intentional that the image preview reverts back to
 size selected after saving? This looks really odd with big pictures that
 happen to be in full-size.

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


More information about the wp-trac mailing list