REST API: Update tests for [35653]
See #34551. Built from https://develop.svn.wordpress.org/trunk@35654 git-svn-id: http://core.svn.wordpress.org/trunk@35618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
81ffd2492c
commit
1a5f0d3857
|
@ -663,10 +663,6 @@ function _oembed_rest_pre_serve_request( $served, $result, $request, $server ) {
|
||||||
// Embed links inside the request.
|
// Embed links inside the request.
|
||||||
$data = $server->response_to_data( $result, false );
|
$data = $server->response_to_data( $result, false );
|
||||||
|
|
||||||
if ( 404 === $result->get_status() ) {
|
|
||||||
$data = $data[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( ! class_exists( 'SimpleXMLElement' ) ) {
|
if ( ! class_exists( 'SimpleXMLElement' ) ) {
|
||||||
status_header( 501 );
|
status_header( 501 );
|
||||||
die( get_status_header_desc( 501 ) );
|
die( get_status_header_desc( 501 ) );
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-beta4-35653';
|
$wp_version = '4.4-beta4-35654';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue