[wp-trac] [WordPress Trac] #7448: Run wp_get_attachment_link()
output through a filter
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 1 04:42:15 GMT 2008
#7448: Run wp_get_attachment_link() output through a filter
--------------------------+-------------------------------------------------
Reporter: Viper007Bond | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.7
Component: Template | Version: 2.6
Severity: normal | Keywords: has-patch
--------------------------+-------------------------------------------------
There's no easy way to modify the output of `wp_get_attachment_link()`
(for example, add `rel="lightbox"` to the links).
Attached is a patch that runs it's output through a filter and also passes
all of `wp_get_attachment_link()`'s parameters for increased flexibility.
--
Ticket URL: <http://trac.wordpress.org/ticket/7448>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list