Plugin breaks image captions when saving two times
-
Hi!
When I insert an image with caption and link, this shorttag is generated:
[caption id="attachment_22" align="alignright" width="300"]<a href="image-url"><img src="thumbnailurl" alt="Test-Caption" width="300" height="199" class="size-medium wp-image-22" /></a> Test-Caption[/caption]
When saving the post for the first time, the shorttag is changed to this:
[caption id="attachment_22" align="alignright" width="300"][<img src="thumbnailurl" alt="Test-Caption" width="300" height="199" class="size-medium wp-image-22" />][1] Test-Caption[/caption] [...] [1]: imageurl
This displays just fine. But when saving the same post again, this markdown is generated:
[caption id="attachment_22" align="alignright" width="300"][<img src="thumbnailurl" alt="Test-Caption" width="300" height="199" class="size-medium wp-image-22" />][1][1] Test-Caption[/caption] [...] [1]: imageurl
Notice the double
[1][1]
– The second [1] is inserted into the caption.Regards,
Jost
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Plugin breaks image captions when saving two times’ is closed to new replies.