Make WordPress Core


Ignore:
Timestamp:
07/23/2008 09:20:53 PM (16 years ago)
Author:
azaozz
Message:

crazyhorse: changed the media uploader according to the wireframes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/crazyhorse/wp-admin/media-upload.php

    r7213 r8422  
    2929    $tab = strval($_GET['tab']);
    3030else
    31     $tab = apply_filters('media_upload_default_tab', 'type');
     31    $tab = apply_filters('media_upload_default_tab', 'library');
    3232
    3333$body_id = 'media-upload';
    3434
    3535// let the action code decide how to handle the request
    36 if ( $tab == 'type' )
    37     do_action("media_upload_$type");
     36if ( isset($_POST['html-upload']) || 'single' == $tab )
     37    do_action("media_upload_image");
    3838else
    39     do_action("media_upload_$tab");
     39    do_action("media_upload_library");
    4040
    4141?>
Note: See TracChangeset for help on using the changeset viewer.