mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 23:58:03 +00:00
REST API: Update tests for [35653]
See #34551. git-svn-id: https://develop.svn.wordpress.org/trunk@35654 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -663,10 +663,6 @@ function _oembed_rest_pre_serve_request( $served, $result, $request, $server ) {
|
||||
// Embed links inside the request.
|
||||
$data = $server->response_to_data( $result, false );
|
||||
|
||||
if ( 404 === $result->get_status() ) {
|
||||
$data = $data[0];
|
||||
}
|
||||
|
||||
if ( ! class_exists( 'SimpleXMLElement' ) ) {
|
||||
status_header( 501 );
|
||||
die( get_status_header_desc( 501 ) );
|
||||
|
||||
Reference in New Issue
Block a user