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.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php
index 18c143c..037cc91 100644
--- a/wp-admin/theme-editor.php
+++ b/wp-admin/theme-editor.php
@@ -56,10 +56,11 @@ break;
default:
- require_once('admin-header.php');
if ( !current_user_can('edit_themes') )
wp_die('<p>'.__('You do not have sufficient permissions to edit themes for this blog.').'</p>');
+ require_once('admin-header.php');
+
update_recently_edited($file);
if (!is_file($real_file))