Ticket #13550: plugin_basename.patch
File plugin_basename.patch, 556 bytes (added by , 14 years ago) |
---|
-
wp-includes/plugin.php
555 555 $mu_plugin_dir = preg_replace('|/+|','/', $mu_plugin_dir); // remove any duplicate slash 556 556 $file = preg_replace('#^' . preg_quote($plugin_dir, '#') . '/|^' . preg_quote($mu_plugin_dir, '#') . '/#','',$file); // get relative path from plugins dir 557 557 $file = trim($file, '/'); 558 return $file;558 return apply_filters('plugin_basename', $file); 559 559 } 560 560 561 561 /**