Changes between Initial Version and Version 1 of Ticket #18311, comment 38
- Timestamp:
- 02/16/2012 08:59:26 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18311, comment 38
initial v1 3 3 We're screwed there either way, though. Once we nest the content into caption_text, we're backwards incompatible for callbacks expecting an attribute. 4 4 5 So, we need to figure out how to be compatible here. What we can do is make img_caption_shortcode() reach into $content, remove the caption, and add it into $attr['caption']. Then pass the modified $attr and $content into the filter.5 So, we need to figure out how to be compatible here. What we can do is make img_caption_shortcode() reach into $content, remove the caption, and add it into `$attr['caption']`. Then pass the modified $attr and $content into the filter. 6 6 7 7 This would work best with a single [caption] shortcode, and no [caption_text]. The regex would need to account for <a> tags around the <img> tag as well.