[wp-trac] [WordPress Trac] #18178: Add "none" option to $attr['link'] for [gallery] shortcode

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 19 20:02:27 UTC 2011


#18178: Add "none" option to $attr['link'] for [gallery] shortcode
-------------------------+-----------------------------
 Reporter:  chipbennett  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Gallery      |    Version:  3.2.1
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 Currently, the `[gallery]` shortcode only supports output of linked
 images. By default, each gallery image links to the attachment page, or
 directly to the file, if `link="file"` is passed to the shortcode. Both
 cases use `wp_get_attachment_image_link()`.

 Attached patch adds support for `link="none"`, enabling the gallery images
 to be output as flat image files, rather than linked, via
 `wp_get_attachment_image()`.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18178>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list