mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-27 00:34:28 +00:00
Allow wp-content to exist outside of webroot. Props sambauers. see #6938
git-svn-id: https://develop.svn.wordpress.org/trunk@7999 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -15,7 +15,7 @@ if (empty($file))
|
||||
$file = $plugin_files[0];
|
||||
|
||||
$file = validate_file_to_edit($file, $plugin_files);
|
||||
$real_file = get_real_file_to_edit( PLUGINDIR . "/$file");
|
||||
$real_file = WP_PLUGIN_DIR . '/' . $file;
|
||||
|
||||
switch($action) {
|
||||
|
||||
@@ -68,7 +68,7 @@ default:
|
||||
|
||||
require_once('admin-header.php');
|
||||
|
||||
update_recently_edited(PLUGINDIR . "/$file");
|
||||
update_recently_edited(WP_PLUGIN_DIR . '/' . $file);
|
||||
|
||||
if ( ! is_file($real_file) )
|
||||
$error = 1;
|
||||
|
||||
Reference in New Issue
Block a user