[wp-hackers] Image caption shortcode format change

Andrew Ozz admin at laptoptips.ca
Tue Dec 17 04:15:45 UTC 2013

On 16/12/2013 5:45 PM, Jeff Tchang wrote:
> How about sticking a wp-caption class around the caption and wrapping it in
> a span tag?

Not really needed as the $html in

`[caption ...]' . $html . ' ' . $caption . '[/caption]`

is either an <img> or an <a><img></a> which can be extracted relatively 
easy. Here's the JS regex that does it in the editor: 

More information about the wp-hackers mailing list