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:
parent
c83a66cbf3
commit
45230b5fc7
|
@ -423,7 +423,7 @@ function get_oembed_endpoint_url( $permalink = '', $format = 'json' ) {
|
|||
|
||||
if ( '' !== $permalink ) {
|
||||
$url = add_query_arg( array(
|
||||
'url' => $permalink,
|
||||
'url' => urlencode( $permalink ),
|
||||
'format' => $format,
|
||||
), $url );
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @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.
|
||||
|
|
Loading…
Reference in New Issue