Ticket #24001: 24001.diff
| File 24001.diff, 704 bytes (added by , 13 years ago) |
|---|
-
wp-includes/class-wp-xmlrpc-server.php
5394 5394 5395 5395 // Work around bug in strip_tags(): 5396 5396 $linea = str_replace('<!DOC', '<DOC', $linea); 5397 $linea = preg_replace( '/[\ s\r\n\t]+/', ' ', $linea ); // normalize spaces5397 $linea = preg_replace( '/[\r\n\t ]+/', ' ', $linea ); // normalize spaces 5398 5398 $linea = preg_replace( "/<\/*(h1|h2|h3|h4|h5|h6|p|th|td|li|dt|dd|pre|caption|input|textarea|button|body)[^>]*>/", "\n\n", $linea ); 5399 5399 5400 5400 preg_match('|<title>([^<]*?)</title>|is', $linea, $matchtitle);