ClassicPress PetitionsClassicPress Petitions
This is a read-only archive. Post or comment on the live version of this page on our forums.

rewrite the shortcode parser to support nested shortcodes and self-nested shortcodes

December 26, 2018 · 04:47 · Greg Schoppe

The current shortcode parser is based on a single regular expression, making it error-prone and incapable of many useful features, such as nesting two instances of the same shortcode.

Here is a proof of concept parser for shortcodes that supports nesting and self-nesting out of the box:

+5 more
Tim Kaye

This is a great idea and definitely has my vote!

Rui Guerreiro

Nice, Thanks for putting this up.