Ticket #5624: 5624.diff

File 5624.diff, 693 bytes (added by Denis-de-Bernardy, 3 years ago)
  • Users/denis/Sites/sem-pro/wp-includes/functions.php

     
    856856function xmlrpc_getposttitle( $content ) { 
    857857        global $post_default_title; 
    858858        if ( preg_match( '/<title>(.+?)<\/title>/is', $content, $matchtitle ) ) { 
    859                 $post_title = $matchtitle[0]; 
    860                 $post_title = preg_replace( '/<title>/si', '', $post_title ); 
    861                 $post_title = preg_replace( '/<\/title>/si', '', $post_title ); 
     859                $post_title = $matchtitle[1]; 
    862860        } else { 
    863861                $post_title = $post_default_title; 
    864862        }