WordPress.org

Make WordPress Core

Changeset 37720


Ignore:
Timestamp:
06/15/2016 06:51:32 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Embeds: In WP_oEmbed::get_provider() and WP_oEmbed::get_html(), parse the $args string to an array, as we treat it as an array later.

See #37071.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-oembed.php

    r37708 r37720  
    222222     */
    223223    public function get_provider( $url, $args = '' ) {
     224        $args = wp_parse_args( $args );
    224225
    225226        $provider = false;
     
    316317     */
    317318    public function get_html( $url, $args = '' ) {
     319        $args = wp_parse_args( $args );
     320
    318321        /**
    319322         * Filters the oEmbed result before any HTTP requests are made.
Note: See TracChangeset for help on using the changeset viewer.