| 1 | Index: wp-includes/plugin.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/plugin.php (revision 19471) |
|---|
| 4 | +++ wp-includes/plugin.php (working copy) |
|---|
| 5 | @@ -566,7 +566,7 @@ |
|---|
| 6 | $plugin_dir = preg_replace('|/+|','/', $plugin_dir); // remove any duplicate slash |
|---|
| 7 | $mu_plugin_dir = str_replace('\\','/',WPMU_PLUGIN_DIR); // sanitize for Win32 installs |
|---|
| 8 | $mu_plugin_dir = preg_replace('|/+|','/', $mu_plugin_dir); // remove any duplicate slash |
|---|
| 9 | - $file = preg_replace('#^' . preg_quote($plugin_dir, '#') . '/|^' . preg_quote($mu_plugin_dir, '#') . '/#','',$file); // get relative path from plugins dir |
|---|
| 10 | + $file = preg_replace('#^' . preg_quote($plugin_dir, '#') . '|^' . preg_quote($mu_plugin_dir, '#') . '#','',$file); // get relative path from plugins dir |
|---|
| 11 | $file = trim($file, '/'); |
|---|
| 12 | return $file; |
|---|
| 13 | } |
|---|