Make WordPress Core

Ticket #13383: media_upload_for_nojs.patch

File media_upload_for_nojs.patch, 1.4 KB (added by ocean90, 14 years ago)
  • wp-admin/includes/media.php

     
    14891489//]]>
    14901490</script>
    14911491
    1492 <div id="flash-upload-ui">
     1492<div id="flash-upload-ui" class="hide-if-no-js">
    14931493<?php do_action('pre-flash-upload-ui'); ?>
    14941494
    14951495        <div>
     
    22312231 * @since unknown
    22322232 */
    22332233function media_upload_html_bypass($flash = true) {
    2234         echo '<p class="upload-html-bypass">';
     2234        echo '<p class="upload-html-bypass hide-if-no-js">';
    22352235        _e('You are using the Browser uploader.');
    22362236        if ( $flash ) {
    22372237                // the user manually selected the browser uploader, so let them switch back to Flash
  • wp-admin/media-upload.php

     
    7878        </script>
    7979        <input type="hidden" name="post_id" id="post_id" value="0" />
    8080        <?php wp_nonce_field('media-form'); ?>
    81         <div id="media-items"> </div>
     81        <div id="media-items" class="hide-if-no-js"> </div>
    8282        <p>
    83         <input type="submit" class="button savebutton" name="save" value="<?php esc_attr_e( 'Save all changes' ); ?>" />
     83        <input type="submit" class="button savebutton hide-if-no-js" name="save" value="<?php esc_attr_e( 'Save all changes' ); ?>" />
    8484        </p>
    8585        </form>
    8686        </div>