Ticket #32335: 32335.patch
File 32335.patch, 961 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/formatting.php
1471 1471 'Ÿ' => 'Ÿ' 1472 1472 ); 1473 1473 1474 // Remove metadata tags1475 $content = preg_replace('/<title>(.+?)<\/title>/','',$content);1476 $content = preg_replace('/<category>(.+?)<\/category>/','',$content);1477 1478 1474 // Converts lone & characters into & (a.k.a. &) 1479 1475 $content = preg_replace('/&([^#])(?![a-z1-4]{1,8};)/i', '&$1', $content); 1480 1476 1481 // Fix Word pasting 1482 $content = strtr($content, $wp_htmltranswinuni); 1477 // Fix Word pasting. TODO: still needed? 1478 if ( strpos( $content, '' ) !== false ) { 1479 $content = strtr( $content, $wp_htmltranswinuni ); 1480 } 1483 1481 1484 // Just a little XHTML help1485 $content = str_replace('<br>', '<br />', $content);1486 $content = str_replace('<hr>', '<hr />', $content);1487 1488 1482 return $content; 1489 1483 } 1490 1484