diff --git a/wp-includes/plugin.php b/wp-includes/plugin.php
index 945461c..5bc475d 100644
a
|
b
|
function plugin_basename($file) { |
567 | 567 | $mu_plugin_dir = str_replace('\\','/',WPMU_PLUGIN_DIR); // sanitize for Win32 installs |
568 | 568 | $mu_plugin_dir = preg_replace('|/+|','/', $mu_plugin_dir); // remove any duplicate slash |
569 | 569 | $file = preg_replace('#^' . preg_quote($plugin_dir, '#') . '/|^' . preg_quote($mu_plugin_dir, '#') . '/#','',$file); // get relative path from plugins dir |
570 | | $file = trim($file, '/'); |
| 570 | |
| 571 | $dir = basename(dirname($file)); |
| 572 | $filename = basename($file); |
| 573 | |
| 574 | $file = trim($dir . '/' . $filename, '/'); |
571 | 575 | return $file; |
572 | 576 | } |
573 | 577 | |