[wp-trac] [WordPress Trac] #27399: Filter the HTML output of wp_get_attachment_image
WordPress Trac
noreply at wordpress.org
Sun Jul 12 18:44:27 UTC 2015
#27399: Filter the HTML output of wp_get_attachment_image
-----------------------------+----------------------
Reporter: fgirardey | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Media | Version: 3.8.1
Severity: normal | Resolution: wontfix
Keywords: has-patch close | Focuses:
-----------------------------+----------------------
Comment (by spacedmonkey):
I really don't agree. There are a number of reasons to have a filter like
this. At the moment, there is no way to support the picture on attached
images, unless you simple build the tag yourself. That isn't good enough.
There are other places in core where tags are filters like this, here are
three for example.
script_loader_tag
https://core.trac.wordpress.org/browser/tags/4.2.2/src/wp-includes/class
.wp-scripts.php#L159
style_loader_tag
https://core.trac.wordpress.org/browser/tags/4.2.2/src/wp-includes/class
.wp-styles.php#L91
post_thumbnail_html
https://core.trac.wordpress.org/browser/tags/4.2.2/src/wp-includes/post-
thumbnail-template.php#L159
I don't see how this is any different
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27399#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list