WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/23/2011 05:58:06 PM (10 years ago)
Author:
nacin
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/deprecated.php

    r18911 r19046  
    805805    $current_screen->render_screen_meta();
    806806}
     807
     808function media_upload_image() {
     809    __deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
     810    return wp_media_upload_handler();
     811}
     812
     813function media_upload_audio() {
     814    __deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
     815    return wp_media_upload_handler();
     816}
     817
     818function media_upload_video() {
     819    __deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
     820    return wp_media_upload_handler();
     821}
     822
     823function media_upload_file() {
     824    __deprecated_function( __FUNCTION__, '3.3', 'wp_media_upload_handler()' );
     825    return wp_media_upload_handler();
     826}
     827
     828function type_url_form_image() {
     829    __deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('image')" );
     830    return wp_media_insert_url_form( 'image' );
     831}
     832
     833function type_url_form_audio() {
     834    __deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('audio')" );
     835    return wp_media_insert_url_form( 'audio' );
     836}
     837
     838function type_url_form_video() {
     839    __deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('video')" );
     840    return wp_media_insert_url_form( 'video' );
     841}
     842
     843function type_url_form_file() {
     844    __deprecated_function( __FUNCTION__, '3.3', "wp_media_insert_url_form('file')" );
     845    return wp_media_insert_url_form( 'file' );
     846}
Note: See TracChangeset for help on using the changeset viewer.