Make WordPress Core

Opened 7 years ago

Last modified 4 years ago

#43725 new defect (bug)

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

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

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 7 years ago.

Download all attachments as: .zip

Change History (2)

#1 @cfinke
4 years ago

#50683 is a potential fix for this and other issues, if you'd like to review the patch there and give feedback.

Note: See TracTickets for help on using tickets.