WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 5 years ago

#6468 closed enhancement (invalid)

Gallery should have an option to skip medium sized image

Reported by: mnogueir Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.5
Component: Gallery Keywords: gallery, thumbnail
Focuses: Cc:

Description

There should be an option in gallery shortcode to bypass the medium sized image, linking the thumbnail directly to the image. This would be most useful for those who use Lightbox (or alikes) to display the images. Thanks.

Change History (4)

comment:1 mnogueir6 years ago

Just found this info somewhere:

edit media.php in the wp-includes dir:

The line number 394 is as follows in 2.5:

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

change it to:

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

and it should work!

So, couldn't this be coded as an admin option? Thanks

comment:2 janeforshort6 years ago

  • Milestone changed from 2.7 to 2.8

comment:3 ryan5 years ago

  • Component changed from General to Gallery
  • Milestone changed from 2.8 to 2.9
  • Owner anonymous deleted

comment:4 DD325 years ago

  • Milestone 2.9 deleted
  • Resolution set to invalid
  • Status changed from new to closed

I believe this has been implemented in 2.7? the gallery options section?

Note: See TracTickets for help on using tickets.