[wp-trac] [WordPress Trac] #33645: wpautop breaks HTML comments
WordPress Trac
noreply at wordpress.org
Wed Sep 2 14:47:13 UTC 2015
#33645: wpautop breaks HTML comments
--------------------------+--------------------------
Reporter: Thomas Hicks | Owner: miqrogroove
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 4.3.1
Component: Formatting | Version: 4.2.4
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+--------------------------
Comment (by miqrogroove):
Explanation of optimizations in the second patch:
In this particular regexp, we are not actually looking for the end of an
element, but the end of an element's name. It is therefore not always
necessary to find a `>` character because the name can also be delimited
by whitespace. For improved speed and readability, I have reduced this
term to simply `[\s>]` The same tests still pass.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33645#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list