[wp-trac] [WordPress Trac] #43725: Multiple instances of opening / closing shortcode only works when closing tag is provided

WordPress Trac noreply at wordpress.org
Mon Apr 9 20:23:17 UTC 2018


#43725: Multiple instances of opening / closing shortcode only works when closing
tag is provided
-----------------------------+----------------------------------------
 Reporter:  danielbachhuber  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Future Release
Component:  Shortcodes       |    Version:
 Severity:  normal           |   Keywords:  needs-patch has-unit-tests
  Focuses:                   |
-----------------------------+----------------------------------------
 Given the following example:

 {{{
 [url]Now this is wrapped[/url]

 [url] This one is standalone

 [url]Now this is wrapped too[/url]
 }}}

 The middle shortcode instance doesn't render unless you close it with
 `[url/]`.

 Attached is a patch with the unit tests. I'm unsure whether this is a
 fixable issue though.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43725>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list