From b1f3926bcb3811401ca12d22f9a8656faabb4d7c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 15 Jun 2016 18:51:32 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@37720 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-oembed.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wp-includes/class-oembed.php b/src/wp-includes/class-oembed.php index 6bdc925e63..9790d266f6 100644 --- a/src/wp-includes/class-oembed.php +++ b/src/wp-includes/class-oembed.php @@ -221,6 +221,7 @@ class WP_oEmbed { * @return false|string False on failure, otherwise the oEmbed provider URL. */ public function get_provider( $url, $args = '' ) { + $args = wp_parse_args( $args ); $provider = false; @@ -315,6 +316,8 @@ class WP_oEmbed { * @return false|string False on failure, otherwise the UNSANITIZED (and potentially unsafe) HTML that should be used to embed. */ public function get_html( $url, $args = '' ) { + $args = wp_parse_args( $args ); + /** * Filters the oEmbed result before any HTTP requests are made. *