Make WordPress Core


Ignore:
Timestamp:
11/20/2014 02:27:08 PM (10 years ago)
Author:
nacin
Message:

Anchor texturize to shortcodes to improve regex efficiency.

props miqrogroove.
see #29557 for segfault issues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/WPTexturize.php

    r29781 r30449  
    11971197            ),
    11981198            array(
    1199                 '[is it wise to <a title="allow user content ] here? hmm"> maybe </a> ]', // HTML corruption is a known bug.  See tickets #12690 and #29557.
    1200                 '[is it wise to <a title="allow user content ] here? hmm&#8221;> maybe </a> ]',
     1199                '[is it wise to <a title="allow user content ] here? hmm"> maybe </a> ]',
     1200                '[is it wise to <a title="allow user content ] here? hmm"> maybe </a> ]',
    12011201            ),
    12021202            array(
    12031203                '[caption - is it wise to <a title="allow user content ] here? hmm"> maybe </a> ]',
    1204                 '[caption - is it wise to <a title="allow user content ] here? hmm&#8221;> maybe </a> ]',
     1204                '[caption &#8211; is it wise to <a title="allow user content ] here? hmm"> maybe </a> ]',
    12051205            ),
    12061206            array(
     
    17681768            array(
    17691769                '[code ...]...[/code]', // code is not a registered shortcode.
    1770                 '[code ...]...[/code]',
     1770                '[code &#8230;]&#8230;[/code]',
    17711771            ),
    17721772            array(
    17731773                '[hello ...]...[/hello]', // hello is not a registered shortcode.
    1774                 '[hello ...]&#8230;[/hello]',
     1774                '[hello &#8230;]&#8230;[/hello]',
    17751775            ),
    17761776            array(
    17771777                '[...]...[/...]', // These are potentially usable shortcodes.
    1778                 '[...]&#8230;[/...]',
     1778                '[&#8230;]&#8230;[/&#8230;]',
    17791779            ),
    17801780            array(
    17811781                '[gal>ery ...]',
    1782                 '[gal>ery ...]',
     1782                '[gal>ery &#8230;]',
    17831783            ),
    17841784            array(
    17851785                '[randomthing param="test"]',
    1786                 '[randomthing param="test"]',
     1786                '[randomthing param=&#8221;test&#8221;]',
    17871787            ),
    17881788            array(
Note: See TracChangeset for help on using the changeset viewer.