diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 86080d677..d9de8279d 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -934,9 +934,7 @@ function make_url_footnote( $content ) { function xmlrpc_getposttitle( $content ) { global $post_default_title; if ( preg_match( '/(.+?)<\/title>/is', $content, $matchtitle ) ) { - $post_title = $matchtitle[0]; - $post_title = preg_replace( '/<title>/si', '', $post_title ); - $post_title = preg_replace( '/<\/title>/si', '', $post_title ); + $post_title = $matchtitle[1]; } else { $post_title = $post_default_title; }