From 8480fdda0a0e669935ece0bd23089ab277652489 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Wed, 9 Nov 2005 20:58:58 +0000 Subject: [PATCH] Should fix #1599 for IIS blogs. git-svn-id: https://develop.svn.wordpress.org/trunk@3024 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index f0c0ad5ab2..2a13bb9b80 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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; } ?>