Correctly encode the `url` parameter that gets passed to WordPress' own oEmbed endpoint URL.

Fixes #34193
Props ocean90

Built from https://develop.svn.wordpress.org/trunk@34915


git-svn-id: http://core.svn.wordpress.org/trunk@34880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2015-10-07 21:43:25 +00:00
parent c83a66cbf3
commit 45230b5fc7
2 changed files with 3 additions and 3 deletions

View File

@ -423,7 +423,7 @@ function get_oembed_endpoint_url( $permalink = '', $format = 'json' ) {
if ( '' !== $permalink ) { if ( '' !== $permalink ) {
$url = add_query_arg( array( $url = add_query_arg( array(
'url' => $permalink, 'url' => urlencode( $permalink ),
'format' => $format, 'format' => $format,
), $url ); ), $url );
} }

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.4-alpha-34914'; $wp_version = '4.4-alpha-34915';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.