[wp-trac] [WordPress Trac] #23298: Initial gallery 'Link to' setting not applied

WordPress Trac noreply at wordpress.org
Tue Mar 26 01:17:29 UTC 2013


#23298: Initial gallery 'Link to' setting not applied
------------------------------+--------------------
 Reporter:  pokes             |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.5.2
Component:  Gallery           |     Version:  3.5.1
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+--------------------

Comment (by spaceda):

 if you do not need image to be linked to page you can use it: (found at
 support pages):

 If you want to force the link to be directly to the image itself, go to
 around line 762-ish
 where this code appears...
 $link = isset($attr['link']) && 'file' == $attr['link'] ?
 wp_get_attachment_link($id, $size, false, false) :
 wp_get_attachment_link($id, $size, true, false);

 Change it to just this...
 $link = wp_get_attachment_link($id, $size, false, false);
 You should get direct links to the big image after that.

 regs

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


More information about the wp-trac mailing list