[wp-trac] [WordPress Trac] #50683: Parse content for shortcodes instead of using regex
WordPress Trac
noreply at wordpress.org
Sun Jul 19 02:11:55 UTC 2020
#50683: Parse content for shortcodes instead of using regex
--------------------------------------+---------------------
Reporter: cfinke | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.6
Component: Shortcodes | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Changes (by cfinke):
* Attachment "shortcode-parser.6.diff" added.
Remove code that handles the concept of escaping something with a
backslash when not in a quoted string. Shortcodes themselves are escaped
with double brackets, and outside of strings, there's no other escaping
needed. Minor improvement to the speed testing benchmark -- about 0.024
seconds.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50683>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list