Changeset 40162
- Timestamp:
- 03/06/2017 12:04:23 PM (8 years ago)
- Location:
- branches/4.6
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.6
-
branches/4.6/src/wp-includes/embed.php
r37744 r40162 213 213 function wp_embed_handler_youtube( $matches, $attr, $url, $rawattr ) { 214 214 global $wp_embed; 215 $embed = $wp_embed->autoembed( "https://youtube.com/watch?v={$matches[2]}");215 $embed = $wp_embed->autoembed( sprintf( "https://youtube.com/watch?v=%s", urlencode( $matches[2] ) ) ); 216 216 217 217 /**
Note: See TracChangeset
for help on using the changeset viewer.