From 52d65dc101a9160e172f5ce1a7b64a6198eddbde Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 22 Aug 2006 18:20:00 +0000 Subject: [PATCH] Die before including the header. git-svn-id: http://svn.automattic.com/wordpress/trunk@4111 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/plugin-editor.php | 3 ++- wp-admin/theme-editor.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-admin/plugin-editor.php b/wp-admin/plugin-editor.php index 840b53bfc..f27e31218 100644 --- a/wp-admin/plugin-editor.php +++ b/wp-admin/plugin-editor.php @@ -41,10 +41,11 @@ break; default: - require_once('admin-header.php'); if ( !current_user_can('edit_plugins') ) wp_die('

'.__('You do not have sufficient permissions to edit plugins for this blog.').'

'); + require_once('admin-header.php'); + update_recently_edited("wp-content/plugins/$file"); if (!is_file($real_file)) diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index cda435ab5..3ac368b38 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -55,10 +55,11 @@ break; default: - require_once('admin-header.php'); 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))