[wp-trac] [WordPress Trac] #50683: Parse content for shortcodes instead of using regex
WordPress Trac
noreply at wordpress.org
Fri Aug 13 04:10:40 UTC 2021
#50683: Parse content for shortcodes instead of using regex
-------------------------------------------------+-------------------------
Reporter: cfinke | Owner:
| johnbillion
Type: enhancement | Status: reviewing
Priority: normal | Milestone: 5.9
Component: Shortcodes | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests early | Focuses:
needs-testing early-like-actually-early |
needs-testing-info |
-------------------------------------------------+-------------------------
Comment (by cfinke):
It appears to be reliant on whether a `>` character follows the last `<`
character in the content being passed to `do_shortcode()`. When there is
no closing `>`, then `shortcode_parse_atts()` takes much less time to
complete, probably because a lot of the string gets stripped or ignored.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50683#comment:39>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list