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

Fixes #34193
Props ocean90


git-svn-id: https://develop.svn.wordpress.org/trunk@34915 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2015-10-07 21:42:36 +00:00
parent b877e3c692
commit 6705184dcc
2 changed files with 9 additions and 8 deletions

View File

@@ -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 );
}
@@ -851,4 +851,4 @@ function print_oembed_embed_scripts() {
?>
</script>
<?php
}
}