From 3a4570b0fc8b3d6339bef71d17d7701554e0bbf7 Mon Sep 17 00:00:00 2001
From: donncha
Date: Fri, 12 Oct 2007 16:21:15 +0000
Subject: Merge with WP 2.3 - testing use only! Move pluggable functions out of
wpmu-functions and into pluggable.php, fixes #439
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1069 7be80a69-a1ef-0310-a953-fb0f7c49ff36
---
wp-admin/theme-editor.php | 153 ----------------------------------------------
1 file changed, 153 deletions(-)
delete mode 100644 wp-admin/theme-editor.php
(limited to 'wp-admin/theme-editor.php')
diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php
deleted file mode 100644
index cc044ed..0000000
--- a/wp-admin/theme-editor.php
+++ /dev/null
@@ -1,153 +0,0 @@
-'.__('You do not have sufficient permissions to edit templates for this blog.').'
');
-
- $newcontent = stripslashes($_POST['newcontent']);
- $theme = urlencode($theme);
- if (is_writeable($real_file)) {
- $f = fopen($real_file, 'w+');
- fwrite($f, $newcontent);
- fclose($f);
- $location = "theme-editor.php?file=$file&theme=$theme&a=te";
- } else {
- $location = "theme-editor.php?file=$file&theme=$theme";
- }
-
- $location = wp_kses_no_null($location);
- $strip = array('%0d', '%0a');
- $location = str_replace($strip, '', $location);
- header("Location: $location");
- exit();
-
-break;
-
-default:
-
- if ( !current_user_can('edit_themes') )
- wp_die(''.__('You do not have sufficient permissions to edit themes for this blog.').'
');
-
- require_once('admin-header.php');
-
- update_recently_edited($file);
-
- if (!is_file($real_file))
- $error = 1;
-
- if (!$error && filesize($real_file) > 0) {
- $f = fopen($real_file, 'r');
- $content = fread($f, filesize($real_file));
- $content = htmlspecialchars($content);
- }
-
- ?>
-
-
-
-
-
-
-
-
- ' . sprintf(__('Editing
%s'), $file_show) . '';
- } else {
- echo '
' . sprintf(__('Browsing %s'), $file_show) . '
';
- }
- ?>
-
-
'%s' theme files"), $theme) ?>
-
-
-
-
-
-
-
-
' . __('Oops, no such file exists! Double check the name and try again, merci.') . '
';
- }
- ?>
-
-
-
--
cgit