Make WordPress Core


Ignore:
Timestamp:
03/20/2008 12:33:59 AM (18 years ago)
Author:
ryan
Message:

Degrade flash upload if the server is lightttpd < 1.5. Props nbachyski. fixes #6243

File:
1 edited

Legend:

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

    r7401 r7406  
    812812            swfupload_element_id : "flash-upload-ui", // id of the element displayed when swfupload is available
    813813            degraded_element_id : "html-upload-ui",   // when swfupload is unavailable
    814             swfupload_loaded_handler : uploadLoaded,
    815814            file_dialog_start_handler : fileDialogStart,
    816815            file_queued_handler : fileQueued,
     
    844843    <input type="hidden" name="post_id" id="post_id" value="<?php echo $post_id; ?>" />
    845844    <br class="clear" />
     845    <?php if ( is_lighttpd_before_150() ): ?>
     846    <p><?php _e('If you want to use all capabilties of the uploader, like uploading multiple files at once, please upgrade to lighttpd 1.5.'); ?></p>
     847    <?php endif;?>
    846848</div>
    847849<?php
Note: See TracChangeset for help on using the changeset viewer.