WordPress.org

Make WordPress Core

Ticket #12690: 12690.2.diff

File 12690.2.diff, 529 bytes (added by MikeHansenMe, 3 years ago)
  • wp-includes/formatting.php

     
    107107        $no_texturize_tags_stack = array(); 
    108108        $no_texturize_shortcodes_stack = array(); 
    109109 
    110         $textarr = preg_split('/(<.*>|\[.*\])/Us', $text, -1, PREG_SPLIT_DELIM_CAPTURE); 
     110        $textarr = preg_split('/(<.*>|\[.*+\])/Us', $text, -1, PREG_SPLIT_DELIM_CAPTURE); 
    111111 
    112112        foreach ( $textarr as &$curl ) { 
    113113                if ( empty( $curl ) )