Should fix #1599 for IIS blogs.

git-svn-id: http://svn.automattic.com/wordpress/trunk@3024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-11-09 20:58:58 +00:00
parent 8e154dc493
commit 9ada34a5ae
1 changed files with 3 additions and 1 deletions

View File

@ -2134,7 +2134,9 @@ function register_deactivation_hook($file, $function) {
} }
function plugin_basename($file) { function plugin_basename($file) {
return preg_replace('/^.*wp-content[\\\\\/]plugins[\\\\\/]/', '', $file); $file = preg_replace('/^.*wp-content[\\\\\/]plugins[\\\\\/]/', '', $file)
$file = stripslashes($file);
return $file;
} }
?> ?>