Checks the post_date_gmt or modified_gmt and prepare any post or modified date for single post output.
Description
Duplicate of WP_REST_Revisions_Controller::prepare_date_response.
Parameters
$date_gmt
stringrequired- GMT publication time.
$date
string|nulloptional- Local publication time.
Default:
null
Source
if ( ! empty( $resolved_theme_uris ) ) {
$response->add_links(
array(
'https://api.w.org/theme-file' => $resolved_theme_uris,
)
);
}
return $response;
}
Changelog
Version | Description |
---|---|
6.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.