WordPress.org

Make WordPress Core

Ticket #24092: 24092.diff

File 24092.diff, 1.3 KB (added by kovshenin, 5 years ago)
  • wp-includes/media.php

     
    20112011                $audio = do_shortcode( '[audio src="' . $url . '" /]' );
    20122012        return apply_filters( 'wp_audio_embed', $audio, $attr, $url, $rawattr );
    20132013}
    2014 wp_embed_register_handler( 'wp_audio_embed', '#https?://.+?\.(' . join( '|', wp_get_audio_extensions() ) . ')#i', apply_filters( 'wp_audio_embed_handler', 'wp_audio_embed' ), 9999 );
     2014wp_embed_register_handler( 'wp_audio_embed', '#^https?://.+?\.(' . join( '|', wp_get_audio_extensions() ) . ')$#i', apply_filters( 'wp_audio_embed_handler', 'wp_audio_embed' ), 9999 );
    20152015
    20162016/**
    20172017 * Video embed handler callback.
     
    20452045        }
    20462046        return apply_filters( 'wp_video_embed', $video, $attr, $url, $rawattr );
    20472047}
    2048 wp_embed_register_handler( 'wp_video_embed', '#https?://.+?\.(' . join( '|', wp_get_video_extensions() ) . ')#i', apply_filters( 'wp_video_embed_handler', 'wp_video_embed' ), 9999 );
     2048wp_embed_register_handler( 'wp_video_embed', '#^https?://.+?\.(' . join( '|', wp_get_video_extensions() ) . ')$#i', apply_filters( 'wp_video_embed_handler', 'wp_video_embed' ), 9999 );
    20492049
    20502050/**
    20512051 * Return suitable HTML code for output based on the content related to the global $post