Make WordPress Core


Ignore:
Timestamp:
04/01/2015 07:08:31 PM (8 years ago)
Author:
wonderboymusic
Message:

Alter the regex in wptexturize() to properly handle input like: <> "Hello world" <>.

Updates unit test data.

Props miqrogroove.
Fixes #30344.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r31938 r31965  
    236236        .         $comment_regex // Find end of comment.
    237237        .     '|'
    238         .         '[^>]+>'       // Find end of element.
     238        .         '[^>]*>'       // Find end of element.
    239239        .     ')'
    240240        . '|'
Note: See TracChangeset for help on using the changeset viewer.