WordPress.org

Make WordPress Core

Ticket #8912: 8912.patch

File 8912.patch, 589 bytes (added by SergeyBiryukov, 8 years ago)

The patch from #16060

  • 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 texturization disabled
    7979                        // static strings