Should fix #1599 for IIS blogs.

git-svn-id: https://develop.svn.wordpress.org/trunk@3024 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-11-09 20:58:58 +00:00
parent 2077dcaf16
commit 8480fdda0a
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) {
return preg_replace('/^.*wp-content[\\\\\/]plugins[\\\\\/]/', '', $file);
$file = preg_replace('/^.*wp-content[\\\\\/]plugins[\\\\\/]/', '', $file)
$file = stripslashes($file);
return $file;
}
?>