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
This commit is contained in:
parent
983d5c94e8
commit
b1f3926bcb
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user