| 1 | Index: wp-includes/class-wp-xmlrpc-server.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/class-wp-xmlrpc-server.php (revision 21880) |
|---|
| 4 | +++ wp-includes/class-wp-xmlrpc-server.php (working copy) |
|---|
| 5 | @@ -5320,7 +5320,7 @@ |
|---|
| 6 | // Work around bug in strip_tags(): |
|---|
| 7 | $linea = str_replace('<!DOC', '<DOC', $linea); |
|---|
| 8 | $linea = preg_replace( '/[\s\r\n\t]+/', ' ', $linea ); // normalize spaces |
|---|
| 9 | - $linea = preg_replace( "/ <(h1|h2|h3|h4|h5|h6|p|th|td|li|dt|dd|pre|caption|input|textarea|button|body)[^>]*>/", "\n\n", $linea ); |
|---|
| 10 | + $linea = preg_replace( "/<\/*(h1|h2|h3|h4|h5|h6|p|th|td|li|dt|dd|pre|caption|input|textarea|button|body)[^>]*>/", "\n\n", $linea ); |
|---|
| 11 | |
|---|
| 12 | preg_match('|<title>([^<]*?)</title>|is', $linea, $matchtitle); |
|---|
| 13 | $title = $matchtitle[1]; |
|---|