Make WordPress Core


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