mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user