summaryrefslogtreecommitdiffstats
path: root/wp-admin/theme-editor.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-07-06 10:41:20 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-07-06 10:41:20 +0000
commit779f0f4411b6467808ff053780c7c96ed0f9a571 (patch)
treefe52143d0597da054fc189e0c2058320d114cfc7 /wp-admin/theme-editor.php
parent78b9569980333f344366151f2dfc9e5b6412e175 (diff)
downloadwordpress-mu-779f0f4411b6467808ff053780c7c96ed0f9a571.tar.gz
wordpress-mu-779f0f4411b6467808ff053780c7c96ed0f9a571.tar.xz
wordpress-mu-779f0f4411b6467808ff053780c7c96ed0f9a571.zip
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@638 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/theme-editor.php')
-rw-r--r--wp-admin/theme-editor.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php
index 43ee21f..18c143c 100644
--- a/wp-admin/theme-editor.php
+++ b/wp-admin/theme-editor.php
@@ -1,6 +1,6 @@
<?php
-die();
require_once('admin.php');
+wp_die( "The theme editor is disabled" );
$title = __("Edit Themes");
$parent_file = 'themes.php';
@@ -17,7 +17,7 @@ if (empty($theme)) {
if ( ! isset($themes[$theme]) )
- die(__('The requested theme does not exist.'));
+ wp_die(__('The requested theme does not exist.'));
$allowed_files = array_merge($themes[$theme]['Stylesheet Files'], $themes[$theme]['Template Files']);
@@ -37,7 +37,7 @@ case 'update':
check_admin_referer('edit-theme_' . $file . $theme);
if ( !current_user_can('edit_themes') )
- die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');
+ wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');
$newcontent = stripslashes($_POST['newcontent']);
$theme = urlencode($theme);
@@ -58,7 +58,7 @@ default:
require_once('admin-header.php');
if ( !current_user_can('edit_themes') )
- die('<p>'.__('You do not have sufficient permissions to edit themes for this blog.').'</p>');
+ wp_die('<p>'.__('You do not have sufficient permissions to edit themes for this blog.').'</p>');
update_recently_edited($file);