WordPress.org

Make WordPress Core

Ticket #36727: ticket36727.patch

File ticket36727.patch, 690 bytes (added by RedSand, 4 years ago)
  • wp-includes/class-wp-xmlrpc-server.php

     
    63266326                $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 );
    63276327
    63286328                preg_match( '|<title>([^<]*?)</title>|is', $remote_source, $matchtitle );
    6329                 $title = $matchtitle[1];
     6329                $title = !empty( $matchtitle[1] ) ? $matchtitle[1] : '';
    63306330                if ( empty( $title ) )
    63316331                        return $this->pingback_error( 32, __('We cannot find a title on that page.' ) );
    63326332