### Eclipse Workspace Patch 1.0 #P wordpress Index: wp-admin/plugin-editor.php =================================================================== --- wp-admin/plugin-editor.php (revision 11110) +++ wp-admin/plugin-editor.php (working copy) @@ -84,9 +84,8 @@ } wp_enqueue_script( 'codepress' ); - add_action( 'admin_print_footer_scripts', 'codepress_footer_js' ); - require_once('admin-header.php'); - + add_action( 'admin_print_footer_scripts', 'codepress_footer_js' ); + update_recently_edited(WP_PLUGIN_DIR . '/' . $file); // List of allowable extensions @@ -106,6 +105,12 @@ $error = __('Files of this type are not editable.'); } } + + if ($error) + wp_die(sprintf('
%s
', $error)); + + require_once('admin-header.php'); + if ( ! $error ) { $content = file_get_contents( $real_file ); @@ -141,7 +146,7 @@' . $error . '
'; } ?>