WordPress.org

Make WordPress Core

Ticket #12690: 12690.3.patch

File 12690.3.patch, 529 bytes (added by kurtpayne, 2 years ago)

Use plus instead of star plus

  • 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 ) )