|
@@ 2238-2240 (lines=3) @@
|
| 2235 |
|
$primary = false; |
| 2236 |
|
if ( ! empty( $atts['src'] ) ) { |
| 2237 |
|
$type = wp_check_filetype( $atts['src'], wp_get_mime_types() ); |
| 2238 |
|
if ( ! in_array( strtolower( $type['ext'] ), $default_types ) ) { |
| 2239 |
|
return sprintf( '<a class="wp-embedded-audio" href="%s">%s</a>', esc_url( $atts['src'] ), esc_html( $atts['src'] ) ); |
| 2240 |
|
} |
| 2241 |
|
$primary = true; |
| 2242 |
|
array_unshift( $default_types, 'src' ); |
| 2243 |
|
} else { |
|
@@ 2469-2471 (lines=3) @@
|
| 2466 |
|
$is_youtube = ( preg_match( $yt_pattern, $atts['src'] ) ); |
| 2467 |
|
if ( ! $is_youtube && ! $is_vimeo ) { |
| 2468 |
|
$type = wp_check_filetype( $atts['src'], wp_get_mime_types() ); |
| 2469 |
|
if ( ! in_array( strtolower( $type['ext'] ), $default_types ) ) { |
| 2470 |
|
return sprintf( '<a class="wp-embedded-video" href="%s">%s</a>', esc_url( $atts['src'] ), esc_html( $atts['src'] ) ); |
| 2471 |
|
} |
| 2472 |
|
} |
| 2473 |
|
|
| 2474 |
|
if ( $is_vimeo ) { |