Shortcode self closing bug?
-
Think I might have found a bug in the shortcode API?
I’m using it for one of my plugins, and its possible to have both self closing tags and tags with content in the middle.
Anyway, the bug is that code like this:
Testing [intlink id="1" /] self close. [intlink id="2"]Testing content[/intlink]
becomes:
Testing <a href="">selc close. <a href="">Testing content</a></a>
As you can see, the first opening shortcode is running until the last closing tag, even thought it is self closed.
Having read the manual I understand the shortcode parser can’t handle nesting of the same tags, but in this case I’m not trying to nest!
Is this a bug or am I doing something wrong?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Shortcode self closing bug?’ is closed to new replies.