summaryrefslogtreecommitdiffstats
path: root/wp-admin/theme-editor.php
diff options
context:
space:
mode:
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);