diff options
Diffstat (limited to 'wp-admin/plugin-editor.php')
| -rw-r--r-- | wp-admin/plugin-editor.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-admin/plugin-editor.php b/wp-admin/plugin-editor.php index c604d19..42fe9d4 100644 --- a/wp-admin/plugin-editor.php +++ b/wp-admin/plugin-editor.php @@ -15,7 +15,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) { @@ -47,7 +47,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; |
