WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/11/2011 07:40:23 PM (7 years ago)
Author:
azaozz
Message:

Bring back the multi-file/html uploader switching, see #19228

File:
1 edited

Legend:

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

    r19194 r19257  
    7373    );
    7474
    75     require_once('./admin-header.php'); ?>
     75    require_once('./admin-header.php');
     76   
     77    $form_class = 'media-upload-form type-form validate';
     78
     79    if ( get_user_setting('uploader') )
     80        $form_class .= ' html-uploader';
     81    ?>
    7682    <div class="wrap">
    7783    <?php screen_icon(); ?>
    7884    <h2><?php echo esc_html( $title ); ?></h2>
    7985
    80     <form enctype="multipart/form-data" method="post" action="<?php echo admin_url('media-upload.php?inline=&amp;upload-page-form='); ?>" class="media-upload-form type-form validate" id="file-form">
     86    <form enctype="multipart/form-data" method="post" action="<?php echo admin_url('media-upload.php?inline=&amp;upload-page-form='); ?>" class="<?php echo $form_class; ?>" id="file-form">
    8187
    8288    <?php media_upload_form(); ?>
Note: See TracChangeset for help on using the changeset viewer.