Changeset 40168 for branches/4.0
- Timestamp:
- 03/06/2017 12:05:20 PM (9 years ago)
- Location:
- branches/4.0
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/media.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0
-
branches/4.0/src/wp-includes/media.php
r34147 r40168 2310 2310 function wp_embed_handler_youtube( $matches, $attr, $url, $rawattr ) { 2311 2311 global $wp_embed; 2312 $embed = $wp_embed->autoembed( "https://youtube.com/watch?v={$matches[2]}");2312 $embed = $wp_embed->autoembed( sprintf( "https://youtube.com/watch?v=%s", urlencode( $matches[2] ) ) ); 2313 2313 /** 2314 2314 * Filter the YoutTube embed output.
Note: See TracChangeset
for help on using the changeset viewer.