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:
parent
8e154dc493
commit
9ada34a5ae
|
@ -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;
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue