From 8845d1f61feed00257f283c3a21acc50a82b0ec2 Mon Sep 17 00:00:00 2001 From: nacin Date: Wed, 26 May 2010 03:57:55 +0000 Subject: [PATCH] Hide Flash uploader and theme/plugin editor documentation feature, if no JS. Also some validation fixes in the theme editor. props ocean90. see #13383. git-svn-id: http://svn.automattic.com/wordpress/trunk@14930 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 4 ++-- wp-admin/media-upload.php | 4 ++-- wp-admin/plugin-editor.php | 2 +- wp-admin/theme-editor.php | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 029f6f1c1..4054d28f6 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -1489,7 +1489,7 @@ SWFUpload.onload = function() { //]]> -
+
@@ -2231,7 +2231,7 @@ function media_upload_flash_bypass() { * @since unknown */ function media_upload_html_bypass($flash = true) { - echo '

'; + echo '

'; _e('You are using the Browser uploader.'); if ( $flash ) { // the user manually selected the browser uploader, so let them switch back to Flash diff --git a/wp-admin/media-upload.php b/wp-admin/media-upload.php index 99c469a37..575b613fa 100644 --- a/wp-admin/media-upload.php +++ b/wp-admin/media-upload.php @@ -88,9 +88,9 @@ if ( isset($_GET['inline']) ) { -

+

- +

diff --git a/wp-admin/plugin-editor.php b/wp-admin/plugin-editor.php index faf17fa89..bd642f51d 100644 --- a/wp-admin/plugin-editor.php +++ b/wp-admin/plugin-editor.php @@ -211,7 +211,7 @@ foreach ( $plugin_files as $plugin_file ) :
-
+
diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 15b2ff524..0aeed384c 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -201,10 +201,10 @@ if ($allowed_files) :
-
+
- +