WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #23298, comment 36


Ignore:
Timestamp:
03/26/2013 01:18:30 AM (7 years ago)
Author:
spaceda
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23298, comment 36

    initial v1  
    33If you want to force the link to be directly to the image itself, go to around line 762-ish
    44where this code appears...
     5
     6{{{
    57$link = isset($attr['link']) && 'file' == $attr['link'] ?
    68wp_get_attachment_link($id, $size, false, false) :
    79wp_get_attachment_link($id, $size, true, false);
    810
     11}}}
     12
    913Change it to just this...
     14
     15{{{
    1016$link = wp_get_attachment_link($id, $size, false, false);
     17}}}
     18
    1119You should get direct links to the big image after that.
    1220