diff --git a/wp-admin/includes/deprecated.php b/wp-admin/includes/deprecated.php index 78177dfe94..a433ebd0c8 100644 --- a/wp-admin/includes/deprecated.php +++ b/wp-admin/includes/deprecated.php @@ -803,4 +803,44 @@ function screen_options( $screen ) { function screen_meta( $screen ) { $current_screen = get_current_screen(); $current_screen->render_screen_meta(); +} + +function media_upload_image() { + __deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); + return wp_media_upload_handler(); +} + +function media_upload_audio() { + __deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); + return wp_media_upload_handler(); +} + +function media_upload_video() { + __deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); + return wp_media_upload_handler(); +} + +function media_upload_file() { + __deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' ); + return wp_media_upload_handler(); +} + +function type_url_form_image() { + __deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('image')" ); + return wp_media_insert_url_form( 'image' ); +} + +function type_url_form_audio() { + __deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('audio')" ); + return wp_media_insert_url_form( 'audio' ); +} + +function type_url_form_video() { + __deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('video')" ); + return wp_media_insert_url_form( 'video' ); +} + +function type_url_form_file() { + __deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('file')" ); + return wp_media_insert_url_form( 'file' ); } \ No newline at end of file diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 84db744f8e..8837fd5973 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -2020,36 +2020,4 @@ add_action( 'media_upload_video', 'wp_media_upload_handler' ); add_action( 'media_upload_file', 'wp_media_upload_handler' ); add_filter( 'media_upload_gallery', 'media_upload_gallery' ); -add_filter( 'media_upload_library', 'media_upload_library' ); - -function media_upload_image() { - return wp_media_upload_handler(); -} - -function media_upload_audio() { - return wp_media_upload_handler(); -} - -function media_upload_video() { - return wp_media_upload_handler(); -} - -function media_upload_file() { - return wp_media_upload_handler(); -} - -function type_url_form_image() { - return wp_media_insert_url_form( 'image' ); -} - -function type_url_form_audio() { - return wp_media_insert_url_form( 'audio' ); -} - -function type_url_form_video() { - return wp_media_insert_url_form( 'video' ); -} - -function type_url_form_file() { - return wp_media_insert_url_form( 'file' ); -} +add_filter( 'media_upload_library', 'media_upload_library' ); \ No newline at end of file