Deprecate media_upload_(image|audio|video|file)(), type_url_form_(image|audio|video|file)(). These now wrap wp_media_upload_handler() and wp_media_insert_url_form(). see #17578.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19046 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ad0e83c165
commit
7ed04cc2f3
|
@ -804,3 +804,43 @@ function screen_meta( $screen ) {
|
||||||
$current_screen = get_current_screen();
|
$current_screen = get_current_screen();
|
||||||
$current_screen->render_screen_meta();
|
$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' );
|
||||||
|
}
|
|
@ -2021,35 +2021,3 @@ add_action( 'media_upload_file', 'wp_media_upload_handler' );
|
||||||
|
|
||||||
add_filter( 'media_upload_gallery', 'media_upload_gallery' );
|
add_filter( 'media_upload_gallery', 'media_upload_gallery' );
|
||||||
add_filter( 'media_upload_library', 'media_upload_library' );
|
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' );
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue