[wp-trac] [WordPress Trac] #24990: Nested Shortcode Inside [caption]

WordPress Trac noreply at wordpress.org
Mon May 11 11:23:12 UTC 2015


#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 tychay):

 The patch in the original post does cause a small side-effect. the filter
 img_caption_shortcode_width will be passed in a shortcode-processed
 caption attribute. I assume side effects like these are why
 do_shortcodes() are done at the very end the the processing chain in most
 shortcode functions.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24990#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list