Turn hard-coded paths to defines. Pull gettext includes int wp-settings. Props mdawaffe. fixes #3157

git-svn-id: https://develop.svn.wordpress.org/trunk@4202 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-09-21 20:46:39 +00:00
parent ae2a89aa46
commit 7e99c9b9d7
7 changed files with 25 additions and 22 deletions

View File

@@ -14,7 +14,7 @@ if (empty($file)) {
}
$file = validate_file_to_edit($file, $plugin_files);
$real_file = get_real_file_to_edit("wp-content/plugins/$file");
$real_file = get_real_file_to_edit( PLUGINDIR . "/$file");
switch($action) {
@@ -46,7 +46,7 @@ default:
require_once('admin-header.php');
update_recently_edited("wp-content/plugins/$file");
update_recently_edited(PLUGINDIR . "/$file");
if (!is_file($real_file))
$error = 1;