WordPress.org

Make WordPress Core

Ticket #47283: 47283.diff

File 47283.diff, 646 bytes (added by david.binda, 6 months ago)
  • src/wp-includes/class-wp-xmlrpc-server.php

     
    68026802                        return $this->pingback_error( 32, __( 'We cannot find a title on that page.' ) );
    68036803                }
    68046804
     6805                $remote_source = preg_replace( '@<(script|style)[^>]*?>.*?</\\1>@si', '', $remote_source ); // remove all script and style tags including their content.
    68056806                $remote_source = strip_tags( $remote_source, '<a>' ); // just keep the tag we need
    68066807
    68076808                $p = explode( "\n\n", $remote_source );