WordPress.org

Make WordPress Core

Ticket #12690: bmb_0003_t12690.patch

File bmb_0003_t12690.patch, 711 bytes (added by bumbu, 8 years ago)
  • wp-includes/formatting.php

     
    3131        static $static_setup = false, $opening_quote, $closing_quote, $default_no_texturize_tags, $default_no_texturize_shortcodes, $static_characters, $static_replacements, $dynamic_characters, $dynamic_replacements;
    3232        $output = '';
    3333        $curl = '';
    34         $textarr = preg_split('/(<.*>|\[.*\])/Us', $text, -1, PREG_SPLIT_DELIM_CAPTURE);
     34        $textarr = preg_split('/(<.*>|\[.*+\])/Us', $text, -1, PREG_SPLIT_DELIM_CAPTURE);
    3535        $stop = count($textarr);
    3636
    3737        // No need to set up these variables more than once