WordPress.org

Make WordPress Core

Ticket #41135: 41135-backport-37720-wp4-4.patch

File 41135-backport-37720-wp4-4.patch, 849 bytes (added by ayeshrajans, 2 years ago)

Changeset 37720 backport for branch 4.4

  • wp-includes/class-oembed.php

    diff --git wp-includes/class-oembed.php wp-includes/class-oembed.php
    index e0a749d80..94f3876dc 100644
    public function __call( $name, $arguments ) { 
    197197         * @return false|string False on failure, otherwise the oEmbed provider URL.
    198198         */
    199199        public function get_provider( $url, $args = '' ) {
    200 
     200                $args = wp_parse_args( $args );
    201201                $provider = false;
    202202
    203203                if ( !isset($args['discover']) )
    public static function _remove_provider_early( $format ) { 
    284284         * @return false|string False on failure, otherwise the UNSANITIZED (and potentially unsafe) HTML that should be used to embed.
    285285         */
    286286        public function get_html( $url, $args = '' ) {
     287                $args = wp_parse_args( $args );
    287288                /**
    288289                 * Filters the oEmbed result before any HTTP requests are made.
    289290                 *