WordPress.org

Make WordPress Core

Ticket #32246: class-wp-oembed-controller.php.patch

File class-wp-oembed-controller.php.patch, 902 bytes (added by ramiy, 4 years ago)
  • wp-includes/class-wp-oembed-controller.php

     
    1313 * Registers the API route and delivers the response data.
    1414 * The output format (XML or JSON) is handled by the REST API.
    1515 *
     16 * @package WordPress
     17 * @subpackage Embeds
    1618 * @since 4.4.0
    1719 */
    1820final class WP_oEmbed_Controller {
     
    2022         * Register the oEmbed REST API route.
    2123         *
    2224         * @since 4.4.0
     25         * @access public
    2326         */
    2427        public function register_routes() {
    2528                /**
     
    5962         * Returns the JSON object for the post.
    6063         *
    6164         * @since 4.4.0
     65         * @access public
    6266         *
    6367         * @param WP_REST_Request $request Full data about the request.
    6468         * @return WP_Error|array oEmbed response data or WP_Error on failure.