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))