Ticket #17657: 17657.2.diff

File 17657.2.diff, 552 bytes (added by solarissmoke, 2 years ago)

Even simpler still

  • 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/**