From 14be097d5e87fa3fea3e1b3c3c160915f2c07bfb Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 24 Nov 2010 20:25:26 +0000 Subject: [PATCH] Revert [15829] for now, consider better solution for 3.2. see #13550 git-svn-id: http://svn.automattic.com/wordpress/trunk@16575 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/plugin.php b/wp-includes/plugin.php index b7f06464e6..ad623df557 100644 --- a/wp-includes/plugin.php +++ b/wp-includes/plugin.php @@ -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 apply_filters('plugin_basename', $file); + return $file; } /**