[wp-trac] [WordPress Trac] #22075: Improving `wp_get_attachment_link`
WordPress Trac
wp-trac at lists.automattic.com
Tue Oct 2 04:29:05 UTC 2012
#22075: Improving `wp_get_attachment_link`
------------------------------------+-------------------------
Reporter: webord | Type: enhancement
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Media
Version: trunk | Severity: normal
Keywords: has-patch dev-feedback |
------------------------------------+-------------------------
I answered a [http://wordpress.stackexchange.com/questions/65982 question]
not so long ago on [http://wordpress.stackexchange.com/ WordPress
StackExchange].
There I saw the need on a filter for `wp_get_attachment_link()` to allow
the developer to add or remove attributes to the HTML without having to
use a regex on it or creating the `a` tag again.
So I've done this small patch with changes to apply this enhancement to
the function.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22075>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list