[wp-trac] [WordPress Trac] #24990: Nested Shortcode Inside [caption]
WordPress Trac
noreply at wordpress.org
Sat Oct 11 07:31:11 UTC 2014
#24990: Nested Shortcode Inside [caption]
----------------------------------------+-----------------------------
Reporter: prionkor | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Media | Version: 3.6
Severity: normal | Resolution:
Keywords: needs-unit-tests has-patch | Focuses:
----------------------------------------+-----------------------------
Comment (by kanedo):
Another case worth consider is if there is no image tag at all inside the
caption shortcode but another shortcode.
In my case I implemented a shortcode for hidpi images but it wont get
parsed if the caption text is inserted after the shortcode like this:
{{{
[caption id="attachment_504" align="aligncenter" width="300"]
[responsive_image id='504' size='medium' width='300' alt='test'
align='center'] Test
[/caption]
}}}
On the other hand, if one add the caption as attribute to the caption-
shortcode (I think this is called old-style) it gets parsed just fine.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/24990#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list