Ticket #36727: ticket36727.patch
File ticket36727.patch, 690 bytes (added by , 8 years ago) |
---|
-
wp-includes/class-wp-xmlrpc-server.php
6326 6326 $remote_source = preg_replace( "/<\/*(h1|h2|h3|h4|h5|h6|p|th|td|li|dt|dd|pre|caption|input|textarea|button|body)[^>]*>/", "\n\n", $remote_source ); 6327 6327 6328 6328 preg_match( '|<title>([^<]*?)</title>|is', $remote_source, $matchtitle ); 6329 $title = $matchtitle[1];6329 $title = !empty( $matchtitle[1] ) ? $matchtitle[1] : ''; 6330 6330 if ( empty( $title ) ) 6331 6331 return $this->pingback_error( 32, __('We cannot find a title on that page.' ) ); 6332 6332