Make WordPress Core


Ignore:
Timestamp:
05/19/2011 04:12:13 PM (13 years ago)
Author:
azaozz
Message:

Add JS detection to wp_iframe output, remove "display:none" from the Flash uploader button, props jacobwg, fixes #17473

File:
1 edited

Legend:

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

    r17615 r17971  
    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();
     
    15521561<?php endif; // $flash ?>
    15531562
    1554 <div id="html-upload-ui">
     1563<div id="html-upload-ui" 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.