WordPress.org

Make WordPress Core

Ticket #10082: patch-#10082-1.diff

File patch-#10082-1.diff, 542 bytes (added by petervanderdoes, 6 years ago)
  • wp-includes/shortcodes.php

    ### Eclipse Workspace Patch 1.0
    #P SVN WordPress 2.8
     
    175175        $tagnames = array_keys($shortcode_tags); 
    176176        $tagregexp = join( '|', array_map('preg_quote', $tagnames) ); 
    177177 
    178         return '(.?)\[('.$tagregexp.')\b(.*?)(?:(\/))?\](?:(.+?)\[\/\2\])?(.?)'; 
     178        return '(.?)\[('.$tagregexp.')\b(.*?)(?:(\/))?\](?:(.+?)\[\/\2\])?([^\[]?)'; 
    179179} 
    180180 
    181181/**