mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Add JS detection to wp_iframe output, remove "display:none" from the Flash uploader button, props jacobwg, fixes #17473
git-svn-id: https://develop.svn.wordpress.org/trunk@17971 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -337,7 +337,16 @@ if ( is_string($content_func) )
|
||||
do_action( "admin_head_{$content_func}" );
|
||||
?>
|
||||
</head>
|
||||
<body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?>>
|
||||
<body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?> class="no-js">
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
(function(){
|
||||
var c = document.body.className;
|
||||
c = c.replace(/no-js/, 'js');
|
||||
document.body.className = c;
|
||||
})();
|
||||
//]]>
|
||||
</script>
|
||||
<?php
|
||||
$args = func_get_args();
|
||||
$args = array_slice($args, 1);
|
||||
@@ -1551,7 +1560,7 @@ SWFUpload.onload = function() {
|
||||
</div>
|
||||
<?php endif; // $flash ?>
|
||||
|
||||
<div id="html-upload-ui">
|
||||
<div id="html-upload-ui" class="hide-if-js">
|
||||
<?php do_action('pre-html-upload-ui'); ?>
|
||||
<p id="async-upload-wrap">
|
||||
<label class="screen-reader-text" for="async-upload"><?php _e('Upload'); ?></label>
|
||||
|
||||
Reference in New Issue
Block a user