- Timestamp:
- 03/06/2017 11:41:47 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/embed.php
r38361 r40160 227 227 function wp_embed_handler_youtube( $matches, $attr, $url, $rawattr ) { 228 228 global $wp_embed; 229 $embed = $wp_embed->autoembed( "https://youtube.com/watch?v={$matches[2]}");229 $embed = $wp_embed->autoembed( sprintf( "https://youtube.com/watch?v=%s", urlencode( $matches[2] ) ) ); 230 230 231 231 /**
Note: See TracChangeset
for help on using the changeset viewer.