WordPress.org

Make WordPress Core

Changeset 19046


Ignore:
Timestamp:
10/23/2011 05:58:06 PM (9 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.

Location:
trunk/wp-admin/includes
Files:
2 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}
  • trunk/wp-admin/includes/media.php

    r18992 r19046  
    20222022add_filter( 'media_upload_gallery', 'media_upload_gallery' );
    20232023add_filter( 'media_upload_library', 'media_upload_library' );
    2024 
    2025 function media_upload_image() {
    2026     return wp_media_upload_handler();
    2027 }
    2028 
    2029 function media_upload_audio() {
    2030     return wp_media_upload_handler();
    2031 }
    2032 
    2033 function media_upload_video() {
    2034     return wp_media_upload_handler();
    2035 }
    2036 
    2037 function media_upload_file() {
    2038     return wp_media_upload_handler();
    2039 }
    2040 
    2041 function type_url_form_image() {
    2042     return wp_media_insert_url_form( 'image' );
    2043 }
    2044 
    2045 function type_url_form_audio() {
    2046     return wp_media_insert_url_form( 'audio' );
    2047 }
    2048 
    2049 function type_url_form_video() {
    2050     return wp_media_insert_url_form( 'video' );
    2051 }
    2052 
    2053 function type_url_form_file() {
    2054     return wp_media_insert_url_form( 'file' );
    2055 }
Note: See TracChangeset for help on using the changeset viewer.