WordPress.org

Make WordPress Core

Ticket #18575: 18575.patch

File 18575.patch, 538 bytes (added by SergeyBiryukov, 10 years ago)
  • wp-includes/formatting.php

     
    6464        $no_texturize_tags_stack = array();
    6565        $no_texturize_shortcodes_stack = array();
    6666
    67         $textarr = preg_split('/(<.*>|\[.*\])/Us', $text, -1, PREG_SPLIT_DELIM_CAPTURE);
     67        $textarr = preg_split('/(<[^<]*>|\[[^\[]*\])/Us', $text, -1, PREG_SPLIT_DELIM_CAPTURE);
    6868
    6969        foreach ( $textarr as &$curl ) {
    7070                if ( empty( $curl ) )