Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r18018 r18290  
    338338?>
    339339</head>
    340 <body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?>>
     340<body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?> class="no-js">
     341<script type="text/javascript">
     342//<![CDATA[
     343(function(){
     344var c = document.body.className;
     345c = c.replace(/no-js/, 'js');
     346document.body.className = c;
     347})();
     348//]]>
     349</script>
    341350<?php
    342351    $args = func_get_args();
     
    13511360                $field['value'] = esc_textarea( $field['value'] );
    13521361            }
    1353             $item .= "<textarea type='text' id='$name' name='$name' $aria_required>" . $field['value'] . '</textarea>';
     1362            $item .= "<textarea id='$name' name='$name' $aria_required>" . $field['value'] . '</textarea>';
    13541363        } else {
    13551364            $item .= "<input type='text' class='text' id='$name' name='$name' value='" . esc_attr( $field['value'] ) . "' $aria_required />";
     
    15521561<?php endif; // $flash ?>
    15531562
    1554 <div id="html-upload-ui">
     1563<div id="html-upload-ui" <?php if ( $flash ) echo 'class="hide-if-js"'; ?>>
    15551564<?php do_action('pre-html-upload-ui'); ?>
    15561565    <p id="async-upload-wrap">
Note: See TracChangeset for help on using the changeset viewer.