summaryrefslogtreecommitdiffstats
path: root/wp-admin/templates.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/templates.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/templates.php')
-rw-r--r--wp-admin/templates.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/wp-admin/templates.php b/wp-admin/templates.php
index 1aaabbe..fa560c8 100644
--- a/wp-admin/templates.php
+++ b/wp-admin/templates.php
@@ -1,6 +1,6 @@
<?php
-die();
require_once('admin.php');
+wp_die( 'The template editor is disabled.' );
$title = __('Template &amp; File Editing');
$parent_file = 'edit.php';
@@ -26,7 +26,7 @@ case 'update':
check_admin_referer('edit-file_' . $file);
if ( ! current_user_can('edit_files') )
- 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']);
if (is_writeable($real_file)) {
@@ -51,10 +51,10 @@ default:
require_once('./admin-header.php');
if ( ! current_user_can('edit_files') )
- 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>');
if ( strstr( $file, 'wp-config.php' ) )
- die('<p>'.__('The config file cannot be edited or viewed through the web interface. Sorry!').'</p>');
+ wp_die('<p>'.__('The config file cannot be edited or viewed through the web interface. Sorry!').'</p>');
update_recently_edited($file);