WordPress.org

Make WordPress Core

Ticket #44074: 44074-fix1.diff

File 44074-fix1.diff, 518 bytes (added by jagszent, 3 years ago)

Possible fix #1

  • class-oembed.

    old new  
    729729                preg_match_all( '#(<pre[^>]*>.+?</pre>)#i', $tokenized, $matches, PREG_SET_ORDER );
    730730                foreach ( $matches as $i => $match ) {
    731731                        $tag_html  = str_replace( $replace, $search, $match[0] );
    732                         $tag_token = $token . $i;
     732                        $tag_token = $token . $i . $token;
    733733
    734734                        $found[ $tag_token ] = $tag_html;
    735735                        $html                = str_replace( $tag_html, $tag_token, $html, $count );