mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-05 17:00:03 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user