[wp-trac] [WordPress Trac] #20205: Add the ability to filter wp_get_attachment_image()
WordPress Trac
noreply at wordpress.org
Thu Nov 8 07:31:38 UTC 2012
#20205: Add the ability to filter wp_get_attachment_image()
------------------------------------+------------------------------
Reporter: helgatheviking | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.4
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+------------------------------
Comment (by doublesharp):
Added a new patch for media.php
([attachment:ticket:20205:media.php.2.patch media.php.2.patch]) that
places the {{{wp_get_attachment_image_src}}} filter in the
{{{wp_get_attachment_image_src()}}} function. Multiple returns are removed
in favor of a single array which is then filtered, and if the result is
still {{{empty()}}} returns false.
I think this makes more sense as the {{{wp_get_attachment_image_src()}}}
could be called directly, and I would expect the results to be filtered.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20205#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list