Make WordPress Core

Ticket #17657: 17657.diff

File 17657.diff, 553 bytes (added by solarissmoke, 14 years ago)
  • wp-includes/shortcodes.php

     
    176176        $tagregexp = join( '|', array_map('preg_quote', $tagnames) );
    177177
    178178        // WARNING! Do not change this regex without changing do_shortcode_tag() and strip_shortcodes()
    179         return '(.?)\[('.$tagregexp.')\b(.*?)(?:(\/))?\](?:(.+?)\[\/\2\])?(.?)';
     179        return '(.?)\[('.$tagregexp.')(?=[^\w-])(.*?)(?:(\/))?\](?:(.+?)\[\/\2\])?(.?)';
    180180}
    181181
    182182/**