WordPress.org

Make WordPress Core

Opened 18 months ago

#43725 new defect (bug)

Multiple instances of opening / closing shortcode only works when closing tag is provided

Reported by: danielbachhuber Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Shortcodes Keywords: needs-patch has-unit-tests
Focuses: Cc:
PR Number:

Description

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.

Attachments (1)

43725.tests.diff (1.4 KB) - added by danielbachhuber 18 months ago.

Download all attachments as: .zip

Change History (1)

Note: See TracTickets for help on using tickets.