Make WordPress Core

Ticket #44278: convert_smilies_regex.patch

File convert_smilies_regex.patch, 598 bytes (added by Andi Dittrich, 7 years ago)

patch to fix the regex

  • wp-includes/formatting.php

     
    31633163                        $content = $textarr[ $i ];
    31643164
    31653165                        // If we're in an ignore block, wait until we find its closing tag
    3166                         if ( '' == $ignore_block_element && preg_match( '/^<(' . $tags_to_ignore . ')>/', $content, $matches ) ) {
     3166                        if ( '' == $ignore_block_element && preg_match( '/^<(' . $tags_to_ignore . ').*?>/U', $content, $matches ) ) {
    31673167                                $ignore_block_element = $matches[1];
    31683168                        }
    31693169