Changeset 40163
- Timestamp:
- 03/06/2017 12:04:35 PM (8 years ago)
- Location:
- branches/4.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.5
-
branches/4.5/src/wp-includes/embed.php
r37732 r40163 252 252 function wp_embed_handler_youtube( $matches, $attr, $url, $rawattr ) { 253 253 global $wp_embed; 254 $embed = $wp_embed->autoembed( "https://youtube.com/watch?v={$matches[2]}");254 $embed = $wp_embed->autoembed( sprintf( "https://youtube.com/watch?v=%s", urlencode( $matches[2] ) ) ); 255 255 256 256 /**
Note: See TracChangeset
for help on using the changeset viewer.