WordPress.org

Make WordPress Core

Ticket #16060: 16060.patch

File 16060.patch, 593 bytes (added by SergeyBiryukov, 7 years ago)
  • wp-includes/formatting.php

     
    7373        for ( $i = 0; $i < $stop; $i++ ) {
    7474                $curl = $textarr[$i];
    7575
    76                 if ( !empty($curl) && '<' != $curl[0] && '[' != $curl[0]
     76                if ( !empty($curl) && '<' != $curl[0] && '[' != $curl[0] && trim($curl) != '-->'
    7777                                && empty($no_texturize_shortcodes_stack) && empty($no_texturize_tags_stack)) {
    7878                        // This is not a tag, nor is the texturization disabled
    7979                        // static strings