Add "none" option to $attr['link'] for [gallery] shortcode
|Reported by:||chipbennett||Owned by:||nacin|
|Cc:||MHagemeister, helgatheviking@…, marcel@…|
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().
Change History (19)
comment:12 nacin — 6 months ago
- Keywords 3.7-early added
- Milestone changed from 3.6 to Future Release
comment:13 nacin — 6 months ago
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed