Ticket #51929: 51929.diff
File 51929.diff, 632 bytes (added by , 4 years ago) |
---|
-
src/wp-includes/media.php
3190 3190 $type = wp_check_filetype( $atts['src'], wp_get_mime_types() ); 3191 3191 3192 3192 if ( ! in_array( strtolower( $type['ext'] ), $default_types, true ) ) { 3193 return sprintf( '< a class="wp-embedded-video" href="%s">%s</a>', esc_url( $atts['src'] ), esc_html( $atts['src'] ) );3193 return sprintf( '<p><a class="wp-embedded-video" href="%s">%s</a></p>', esc_url( $atts['src'] ), esc_html( $atts['src'] ) ); 3194 3194 } 3195 3195 } 3196 3196