WordPress.org

Make WordPress Core

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

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

Changeset 37720 backport for branch 4.5

  • wp-includes/class-oembed.php

    diff --git wp-includes/class-oembed.php wp-includes/class-oembed.php
    index 3e19f3ba5..2058ff4be 100644
    public function __call( $name, $arguments ) { 
    221221         * @return false|string False on failure, otherwise the oEmbed provider URL.
    222222         */
    223223        public function get_provider( $url, $args = '' ) {
    224 
     224                $args = wp_parse_args( $args );
    225225                $provider = false;
    226226
    227227                if ( !isset($args['discover']) )
    public static function _remove_provider_early( $format ) { 
    315315         * @return false|string False on failure, otherwise the UNSANITIZED (and potentially unsafe) HTML that should be used to embed.
    316316         */
    317317        public function get_html( $url, $args = '' ) {
     318                $args = wp_parse_args( $args );
    318319                /**
    319320                 * Filters the oEmbed result before any HTTP requests are made.
    320321                 *