Apply filter in plugin_basename(). Props vladimir_kolesnikov. Fixes #13550

git-svn-id: http://svn.automattic.com/wordpress/trunk@15829 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
scribu 2010-10-17 13:47:40 +00:00
parent d91842f870
commit af29ce4440
1 changed files with 1 additions and 1 deletions

View File

@ -555,7 +555,7 @@ function plugin_basename($file) {
$mu_plugin_dir = preg_replace('|/+|','/', $mu_plugin_dir); // remove any duplicate slash
$file = preg_replace('#^' . preg_quote($plugin_dir, '#') . '/|^' . preg_quote($mu_plugin_dir, '#') . '/#','',$file); // get relative path from plugins dir
$file = trim($file, '/');
return $file;
return apply_filters('plugin_basename', $file);
}
/**