Support » How-To and Troubleshooting » caption shortcode lost caption-attribute?

caption shortcode lost caption-attribute?

  • hi!

    In the past (< WP 3.51) the shorttag output of the media library was:
    [caption id="attachment_12345" align="alignnone" width="100" caption="My Caption Text"]<img src=”myimage.jpg” />[/caption]

    Now, this changed with the WP 3.51 update to
    [caption id="attachment_12345" align="alignnone" width="100"]<img src=”myimage.jpg” />My Caption Text[/caption]

    Because of this my img-captions are broken now:-/

    I hooked up into the caption shortcode:

    add_shortcode('wp_caption', 'myImgCaption');
    add_shortcode('caption', 'myImgCaption');

    extracted the caption-text for further processing with

    function myImgCaption(){
    		'id' => '',
    		'caption' => '',
    	), $attr));

    This worked pretty fine, till now 🙁

    What can I do, do force WP into the old structure?


Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘caption shortcode lost caption-attribute?’ is closed to new replies.