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. Built from https://develop.svn.wordpress.org/trunk@37720 git-svn-id: http://core.svn.wordpress.org/trunk@37686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9b4718a21f
commit
d50ac5598f
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.6-alpha-37719';
|
||||
$wp_version = '4.6-alpha-37720';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue