From 622a66dc05808d9e5d1589d5553cb28abb2d3a56 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 22 Aug 2006 18:20:00 +0000 Subject: [PATCH] Die before including the header. git-svn-id: https://develop.svn.wordpress.org/trunk@4111 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 840b53bfc1..f27e312187 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 cda435ab51..3ac368b381 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))