[wp-trac] [WordPress Trac] #33468: Add image caption hook
WordPress Trac
noreply at wordpress.org
Thu Aug 20 17:42:54 UTC 2015
#33468: Add image caption hook
-----------------------------+------------------------------
Reporter: guillaumemolter | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Resolution:
Keywords: | Focuses: template
-----------------------------+------------------------------
Comment (by guillaumemolter):
Replying to [comment:1 DrewAPicture]:
> Something to consider is that captions are both output in the editor and
on the front-end. When HTML support was added to captions a few (maybe
more than a few, I don't remember) versions ago, it kind of introduced a
new dynamic in terms of what would be considered valid not to break the
editor and/or gallery shortcodes on display.
>
> I would thing that any kind of filter added to the caption output would
have to keep both front-end and editor use-cases in mind.
Thank you for the feedback I'll make sure to take this into consideration.
I'll study how Core is currently handling Captions as well as how other
filters work. Can you think of a similar filter that I can use as a
reference?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33468#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list