Ticket #36297: class-wp-oembed-controller.php.patch
File class-wp-oembed-controller.php.patch, 902 bytes (added by , 9 years ago) |
---|
-
wp-includes/class-wp-oembed-controller.php
13 13 * Registers the API route and delivers the response data. 14 14 * The output format (XML or JSON) is handled by the REST API. 15 15 * 16 * @package WordPress 17 * @subpackage Embeds 16 18 * @since 4.4.0 17 19 */ 18 20 final class WP_oEmbed_Controller { … … 20 22 * Register the oEmbed REST API route. 21 23 * 22 24 * @since 4.4.0 25 * @access public 23 26 */ 24 27 public function register_routes() { 25 28 /** … … 59 62 * Returns the JSON object for the post. 60 63 * 61 64 * @since 4.4.0 65 * @access public 62 66 * 63 67 * @param WP_REST_Request $request Full data about the request. 64 68 * @return WP_Error|array oEmbed response data or WP_Error on failure.