Skip to content

Commit f6f138c

Browse files
committed
Use correct escaping function. props duck_.
git-svn-id: https://develop.svn.wordpress.org/branches/3.4@23323 602fd350-edb4-49c9-b593-d223f7449a82
1 parent c1fc3fb commit f6f138c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wp-includes/media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ function autoembed_callback( $match ) {
13121312
* @return string Linked URL or the original URL.
13131313
*/
13141314
function maybe_make_link( $url ) {
1315-
$output = ( $this->linkifunknown ) ? '<a href="' . esc_attr($url) . '">' . esc_html($url) . '</a>' : $url;
1315+
$output = ( $this->linkifunknown ) ? '<a href="' . esc_url($url) . '">' . esc_html($url) . '</a>' : $url;
13161316
return apply_filters( 'embed_maybe_make_link', $output, $url );
13171317
}
13181318
}

0 commit comments

Comments
 (0)