[wp-trac] Re: [WordPress Trac] #6633: Image URL in galleries can't be set to link to the image directly

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 16 11:43:23 GMT 2008


#6633: Image URL in galleries can't be set to link to the image directly
----------------------------+-----------------------------------------------
 Reporter:  jwbats          |        Owner:  anonymous
     Type:  defect          |       Status:  new      
 Priority:  high            |    Milestone:  2.7      
Component:  Administration  |      Version:  2.5      
 Severity:  normal          |   Resolution:           
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by Bossy):

 {{{
     edit media.php in the wp-includes dir:

     The line number 447 is as follows in 2.6.2:

     $link = wp_get_attachment_link($id, $size, true);

     change it to:

     $link = wp_get_attachment_link($id, $size, false);

     and it should work!
 }}}
 [[BR]]
 This works for me, it's just a tweak. It would be nice if this was an
 option by Settings.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6633#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list