[wp-hackers] Image caption shortcode format change

Jeff Tchang jeff.tchang at gmail.com
Tue Dec 17 01:45:44 UTC 2013

On Mon, Dec 16, 2013 at 2:24 PM, Otto <otto at ottodestruct.com> wrote:

> On Mon, Dec 16, 2013 at 4:09 PM, Jeff Tchang <jeff.tchang at gmail.com>
> wrote:
> > Was there a reason to remove the caption attribute?
> >
> People wanted to put HTML into their captions. Number one request for
> captions, by far.
> And <a href="whatever">Linked caption</a> becomes extremely difficult to do
> when you have them in an attribute and thus have to fiddle with quotes in
> the caption breaking the quotes around the attribute.

How about sticking a wp-caption class around the caption and wrapping it in
a span tag?

<span class="wp-caption">$caption</span>

This way you can actually parse it if needed.

More information about the wp-hackers mailing list